Documentation
¶
Index ¶
- func HandleCall[R, P any, RM, PM any](handler func(context.Context, *PM, ...grpc.CallOption) (*RM, error), ...) (R, error)
- func HandleProcedure[R, P any, RM, PM any](handler func(context.Context, P) (R, error), ctx context.Context, request *PM, ...) (resp *RM, err error)
- func InitModules(server *grpc.Server, modules ...server.Module)
- func ParseMessage[T any](message any) (value T, err error)
- type Caller
- type CallerConfig
- type MethodConfig
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCall ¶
func HandleProcedure ¶
func ParseMessage ¶
Types ¶
type Caller ¶
type Caller interface { Init(server *grpc.Server) Config() CallerConfig }
type CallerConfig ¶
type CallerConfig map[string]MethodConfig
func GetConfig ¶ added in v1.0.0
func GetConfig(modules ...server.Module) CallerConfig
type MethodConfig ¶
type MethodConfig struct {
Public bool
}
Click to show internal directories.
Click to hide internal directories.