Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, fn FilterFunc)
Register can register a filter func to the framework
func ToInterceptors ¶
func ToInterceptors() []grpc.UnaryServerInterceptor
ToInterceptors will convert FilterFuncs to grpc.UnaryServerInterceptors.
Types ¶
type FilterFunc ¶
FilterFunc defines a new func type that represented the filter function
type HandlerFunc ¶ added in v0.0.4
type HandlerFunc grpc.UnaryHandler
HandlerFunc defines the handler of a function
type ServerFilter ¶
type ServerFilter struct { Name string Fn FilterFunc }
ServerFilter is an interceptor for a service as server role
Click to show internal directories.
Click to hide internal directories.