Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultHcRoute = "/health"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func NewAdminServer ¶
func NewAdminServer(httpPort int) *AdminServer
func (*AdminServer) AddFlags ¶
func (s *AdminServer) AddFlags(flags *flag.FlagSet)
func (*AdminServer) Close ¶
func (s *AdminServer) Close() error
func (*AdminServer) HC ¶
func (s *AdminServer) HC() hc.HealthCheck
func (*AdminServer) InitFromViper ¶
func (s *AdminServer) InitFromViper(v *viper.Viper, logger *zap.Logger)
func (*AdminServer) Serve ¶
func (s *AdminServer) Serve() error
Click to show internal directories.
Click to hide internal directories.