Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFilter ¶
func RegisterFilter(filterType string, handler RequestHandler)
Types ¶
type ContextKeyRequestData ¶
type ContextKeyRequestData struct { }
type DispatchFilter ¶
type DispatchFilter struct {
// contains filtered or unexported fields
}
func (*DispatchFilter) OnDestroy ¶
func (dis *DispatchFilter) OnDestroy()
func (*DispatchFilter) SetReceiveFilterHandler ¶
func (dis *DispatchFilter) SetReceiveFilterHandler(handler api.StreamReceiverFilterHandler)
type Endpoint ¶
type Endpoint interface {
Handle(ctx context.Context, params ParamsScanner) (jsonObject map[string]interface{}, err error)
}
type ParamsScanner ¶
type PathResolver ¶
type PathResolver struct {
// contains filtered or unexported fields
}
PathResolver is a util to extract elements in http path.
func NewPathResolver ¶
func NewPathResolver(path string) *PathResolver
func (*PathResolver) HasNext ¶
func (p *PathResolver) HasNext() bool
func (*PathResolver) Next ¶
func (p *PathResolver) Next() string
func (*PathResolver) UnresolvedPath ¶
func (p *PathResolver) UnresolvedPath() string
type RequestHandler ¶
type ServiceFactory ¶
type ServiceFactory struct {
// contains filtered or unexported fields
}
func (*ServiceFactory) CreateFilterChain ¶
func (f *ServiceFactory) CreateFilterChain(context context.Context, callbacks api.StreamFilterChainFactoryCallbacks)
Click to show internal directories.
Click to hide internal directories.