add HandlerMetadata server.HandlerOption
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -133,6 +133,12 @@ func RegisterRPCHandler(b bool) server.Option {
|
||||
return server.SetOption(registerRPCHandlerKey{}, b)
|
||||
}
|
||||
|
||||
type handlerMetadataKey struct{}
|
||||
|
||||
func HandlerMetadata(md map[string]map[string]string) server.HandlerOption {
|
||||
return server.SetHandlerOption(handlerMetadataKey{}, md)
|
||||
}
|
||||
|
||||
type headerKey struct{}
|
||||
|
||||
type handlerOptions struct {
|
||||
|
||||
Reference in New Issue
Block a user