Documentation
¶
Overview ¶
skeleton package contains a framework to develop micro service.
Index ¶
Constants ¶
View Source
const (
DefaultLogLevel = "info"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { ServiceName string Logger *zap.Logger AdminServer *server.AdminServer MetricsFactory metrics.Factory // contains filtered or unexported fields }
func NewService ¶
func (*Service) HC ¶
func (s *Service) HC() hc.HealthCheck
func (*Service) RunAndThen ¶
func (s *Service) RunAndThen(shutdown func())
func (*Service) SetHCStatus ¶
type SharedFlags ¶
type SharedFlags struct {
}func (*SharedFlags) InitFromViper ¶
func (aOpts *SharedFlags) InitFromViper(v *viper.Viper) *SharedFlags
Click to show internal directories.
Click to hide internal directories.