Documentation ¶
Index ¶
- func ContextMiddlewareHandler(modifier IncomingContextModifier) func(http.Handler) http.Handler
- func New(ctx context.Context) server.Server
- type IncomingContextModifier
- type Server
- func (s *Server) Address() []string
- func (s *Server) As(i interface{}) bool
- func (s *Server) Endpoints() []string
- func (s *Server) ID() string
- func (s *Server) Metadata() map[string]string
- func (s *Server) Name() string
- func (s *Server) Serve() error
- func (s *Server) Stop() error
- func (s *Server) Type() server.ServerType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextMiddlewareHandler ¶
func ContextMiddlewareHandler(modifier IncomingContextModifier) func(http.Handler) http.Handler
Types ¶
type IncomingContextModifier ¶
IncomingContextModifier modifies context and returns a new context, true if context was modified, or an error
Click to show internal directories.
Click to hide internal directories.