Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer[REQ any, RESP responseSet](e EndpointFn[REQ, RESP], opts ...Option[REQ, RESP]) *server[REQ, RESP]
Types ¶
type EndpointFn ¶
type EndpointMiddlewareFn ¶
type EndpointMiddlewareFn[REQ any, RESP any] func(next EndpointFn[REQ, RESP]) EndpointFn[REQ, RESP]
type Option ¶
type Option[REQ any, RESP responseSet] interface { Apply(*server[REQ, RESP]) }
func WithPreRequestMiddleware ¶
func WithPreRequestMiddleware[REQ any, RESP responseSet](e ...EndpointMiddlewareFn[REQ, RESP]) Option[REQ, RESP]
Click to show internal directories.
Click to hide internal directories.