Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultServiceName = "microservice-go"
)
Variables ¶
This section is empty.
Functions ¶
func AddSharedFlags ¶
Types ¶
type Params ¶
type Params struct { ServiceName string Logger *zap.Logger HealthCheck *hc.HealthCheck Tracer opentracing.Tracer }
type Service ¶
type Service struct { ServiceName string Logger *zap.Logger AdminServer *server.AdminServer // 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.