server

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL