Versions in this module Expand all Collapse all v3 v3.13.1 Sep 21, 2022 Changes in this version + var DefaultMaxRecvSize int64 = 1024 * 1024 * 100 + type APIHandler struct + func (a *APIHandler) AddToBlockList(ctx context.Context, request *api.AddToBlockListRequest, ...) error + func (a *APIHandler) ReadBlockList(ctx context.Context, request *api.ReadBlockListRequest, ...) error + func (a *APIHandler) RemoveFromBlockList(ctx context.Context, request *api.RemoveFromBlockListRequest, ...) error + type Context interface + Client func() client.Client + Domain func() string + Service func() *api.Service + type Handler interface + ServeHTTP func(w http.ResponseWriter, r *http.Request) + String func() string + type Option func(o *Options) + func WithClient(c client.Client) Option + func WithMaxRecvSize(size int64) Option + func WithNamespace(s string) Option + func WithRouter(r router.Router) Option + type Options struct + Client client.Client + MaxRecvSize int64 + Namespace string + Router router.Router + func NewOptions(opts ...Option) Options