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 Config struct { Level string `yaml:"level"` Encoding string `yaml:"encoding"` CallFull bool `yaml:"call_full"` MaxSize int `yaml:"max_size"` MaxAge int `yaml:"max_age"` MaxBackups int `yaml:"max_backups"` LocalTime bool `yaml:"local_time"` Compress bool `yaml:"compress"` Color bool `yaml:"color"` AddCaller bool `yaml:"add_caller"` }
type ErrorHandler ¶
type ErrorHandlerFunc ¶
type LogErrorHandler ¶
type LogErrorHandler struct {
// contains filtered or unexported fields
}
func NewLogErrorHandler ¶
func NewLogErrorHandler(l *zap.Logger) *LogErrorHandler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(svc Service, options ...ServerOption) *Server
func NewServer ¶
func NewServer(e Endpoint, options ...ServerOption) *Server
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.