Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.10
type ErrorHandler ¶
type ErrorHandlerFunc ¶
type Handler ¶
type Handler interface { ServerWater(ctx context.Context, req any) (any, error) GetLogger() *zap.Logger }
func NewHandler ¶
func NewHandler(srv Service, options ...ServerOption) Handler
type LogErrorHandler ¶
type LogErrorHandler struct {
// contains filtered or unexported fields
}
func NewLogErrorHandler ¶
func NewLogErrorHandler(l *zap.Logger, n string) *LogErrorHandler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetRequest ¶ added in v0.1.1
type ServerBase ¶ added in v0.0.12
type ServerBase struct {
// contains filtered or unexported fields
}
func (*ServerBase) GetLogger ¶ added in v0.0.18
func (s *ServerBase) GetLogger() *zap.Logger
func (*ServerBase) Name ¶ added in v0.0.12
func (s *ServerBase) Name(srv any) string
func (*ServerBase) SetLogger ¶ added in v0.0.19
func (s *ServerBase) SetLogger(l *zap.Logger)
type ServerFinalizerFunc ¶
type ServerOption ¶
type ServerOption func(*Server)
func ServerConfig ¶ added in v0.0.10
func ServerConfig(c *Config) ServerOption
func ServerErrorHandler ¶ added in v0.0.5
func ServerErrorHandler(errorHandler ErrorHandler) ServerOption
func ServerFinalizer ¶ added in v0.0.5
func ServerFinalizer(f ...ServerFinalizerFunc) ServerOption
Click to show internal directories.
Click to hide internal directories.