Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultListenAddress = "0.0.0.0" DefaultListenPort = 8081 DefaultGracefulShutdownTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
func NewService ¶
func NewService(config ServiceConfig, logger log.Logger) (*Service, error)
type ServiceConfig ¶
type ServiceConfig struct { HTTPListenAddress string HTTPListenPort int GracefulShutdownTimeout time.Duration }
func (*ServiceConfig) RegisterFlags ¶
func (c *ServiceConfig) RegisterFlags(flags *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.