Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultLogger() (logger.Logger, error)
- func GRPCGateway() serverOption
- func NewLogger(config *logger.Config, options ...LoggerOption) (logger.Logger, error)
- func NewRepository(config *kRepository.Config, logger kLogger.Logger) (kRepository.Repository, error)
- func NewServer(options ...serverOption) (server.Server, error)
- type LoggerOption
Constants ¶
View Source
const ( NoRPC rpcServerImpl = iota GRPCImpl )
View Source
const ( NoAPI apiServerImpl = iota GRPCGatewayImpl )
Variables ¶
View Source
var ( GRPC serverOption = func(s *newServer) { s.rpcChoice = GRPCImpl } )
Functions ¶
func DefaultLogger ¶
func GRPCGateway ¶
func GRPCGateway() serverOption
func NewRepository ¶
func NewRepository(config *kRepository.Config, logger kLogger.Logger) (kRepository.Repository, error)
Types ¶
type LoggerOption ¶
var Zap LoggerOption = func(l logger.Logger) { l = &zap.Logger{} }
Click to show internal directories.
Click to hide internal directories.