Documentation ¶
Overview ¶
Package handler provides http handlers
Index ¶
- Variables
- type APIHandler
- 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
- type Handler
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultMaxRecvSize int64 = 1024 * 1024 * 100 // 10Mb
)
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
type APIHandler struct{}
func (*APIHandler) AddToBlockList ¶
func (a *APIHandler) AddToBlockList(ctx context.Context, request *api.AddToBlockListRequest, response *api.AddToBlockListResponse) error
func (*APIHandler) ReadBlockList ¶
func (a *APIHandler) ReadBlockList(ctx context.Context, request *api.ReadBlockListRequest, response *api.ReadBlockListResponse) error
func (*APIHandler) RemoveFromBlockList ¶
func (a *APIHandler) RemoveFromBlockList(ctx context.Context, request *api.RemoveFromBlockListRequest, response *api.RemoveFromBlockListResponse) error
type Handler ¶
type Handler interface { // standard http handler ServeHTTP(w http.ResponseWriter, r *http.Request) // name of handler String() string }
Handler represents a HTTP handler that manages a request
type Option ¶
type Option func(o *Options)
func WithClient ¶
func WithMaxRecvSize ¶
WithMaxRecvSize specifies max body size
func WithNamespace ¶
WithNamespace specifies the namespace for the handler
func WithRouter ¶
WithRouter specifies a router to be used by the handler
Directories ¶
Path | Synopsis |
---|---|
Package api provides an http-rpc handler which provides the entire http request over rpc
|
Package api provides an http-rpc handler which provides the entire http request over rpc |
Package event provides a handler which publishes an event
|
Package event provides a handler which publishes an event |
Package http is a http reverse proxy handler
|
Package http is a http reverse proxy handler |
Package rpc is a go-micro rpc handler.
|
Package rpc is a go-micro rpc handler. |
Package web contains the web handler including websocket support
|
Package web contains the web handler including websocket support |
Click to show internal directories.
Click to hide internal directories.