Versions in this module Expand all Collapse all v1 v1.1.6 Nov 11, 2022 v0 v0.1.0 Nov 11, 2022 v0.0.3 Nov 11, 2022 v0.0.1 Nov 11, 2022 Changes in this version + const PackageName + var DefaultServeMux = http.NewServeMux() + func HandleFunc(pattern string, handler http.HandlerFunc) + type Component struct + func (c *Component) GracefulStop(ctx context.Context) error + func (c *Component) Info() *server.ServiceInfo + func (c *Component) Init() error + func (c *Component) Name() string + func (c *Component) PackageName() string + func (c *Component) Start() error + func (c *Component) Stop() error + type Config struct + Host string + Network string + Port int + func DefaultConfig() *Config + func (config Config) Address() string + type Container struct + func DefaultContainer() *Container + func Load(key string) *Container + func (c *Container) Build(options ...Option) *Component + type Option func(c *Container) + func WithHost(host string) Option + func WithPort(port int) Option