Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoints []Endpoint //nolint:gochecknoglobals
Functions ¶
func FilterEndpoints ¶
func HTTPEndpointSortByPathLen ¶
func HTTPEndpointSortByPathLen(a, b *HTTPEndpoint) bool
func RegisterEndpoints ¶
func RegisterEndpoints(eps ...Endpoint)
Types ¶
type EndpointDesc ¶
type EndpointDesc struct { Name string Description string Selector string Tags []string Metas map[string]string Disabled bool DeprecationDescription string }
func (EndpointDesc) String ¶
func (e EndpointDesc) String() string
type HTTPEndpoint ¶
type HTTPEndpoint struct { EndpointDesc Method string Path string Handler http.Handler HandlerFunc func(http.ResponseWriter, *http.Request) Middleware func(http.Handler) http.Handler Children []*HTTPEndpoint Methods []string Middlewares []func(http.Handler) http.Handler }
func (*HTTPEndpoint) GetEndpointDesc ¶
func (e *HTTPEndpoint) GetEndpointDesc() *EndpointDesc
func (*HTTPEndpoint) Normalize ¶
func (e *HTTPEndpoint) Normalize()
func (HTTPEndpoint) String ¶
func (e HTTPEndpoint) String() string
func (*HTTPEndpoint) Validate ¶
func (e *HTTPEndpoint) Validate() error
Click to show internal directories.
Click to hide internal directories.