Documentation ¶
Index ¶
- func WithErrorWriter(writer http.ErrorWriter) internal.OptionSetter[MuxRouter]
- func WithPostInterceptors(handlers ...interceptor.PostHandler) internal.OptionSetter[MuxRouter]
- func WithPreInterceptors(handlers ...interceptor.PreHandler) internal.OptionSetter[MuxRouter]
- type MuxRouter
- func (t *MuxRouter) Apply(nodes []discovery.Node) (err error)
- func (t *MuxRouter) Close() error
- func (t *MuxRouter) Context() context.Context
- func (t *MuxRouter) Endpoints() map[string]http.Endpoint
- func (t *MuxRouter) Register(path string) error
- func (t *MuxRouter) ServeHTTP(writer std.ResponseWriter, request *std.Request)
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithErrorWriter ¶
func WithErrorWriter(writer http.ErrorWriter) internal.OptionSetter[MuxRouter]
func WithPostInterceptors ¶
func WithPostInterceptors(handlers ...interceptor.PostHandler) internal.OptionSetter[MuxRouter]
func WithPreInterceptors ¶
func WithPreInterceptors(handlers ...interceptor.PreHandler) internal.OptionSetter[MuxRouter]
Types ¶
type MuxRouter ¶
type MuxRouter struct { interceptor.Interceptors // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.