Documentation ¶
Index ¶
- Constants
- type Container
- type Option
- func WithAddr(addr string) Option
- func WithContext(ctx context.Context) Option
- func WithHealthCheckFN(s http.HealthCheckFn) Option
- func WithName(n string) Option
- func WithProfilingEnabled(p bool) Option
- func WithSidecarListener(l service.HTTPListener) Option
- func WithStarter(s func(ctx context.Context) error) Option
- type Options
- type Service
- func (s Service) DoServe(listener net.Listener) error
- func (s Service) DoServeWithDelay(listener net.Listener, delay time.Duration) error
- func (s Service) NewHelthCheckClient(c service.HTTPClientBuilder) *http.HealthCheckClient
- func (s Service) Serve() error
- func (s Service) ServeWithDelay(delay time.Duration) error
- type StartFn
Constants ¶
View Source
const Kind = service.Process
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
func (*Container) AddrOrPanic ¶
func (*Container) NewHealthCheckClient ¶
func (c *Container) NewHealthCheckClient() (service.HealthChecker, error)
type Option ¶
type Option interface {
Apply(*Options)
}
func WithContext ¶
func WithHealthCheckFN ¶
func WithHealthCheckFN(s http.HealthCheckFn) Option
func WithProfilingEnabled ¶
func WithSidecarListener ¶
func WithSidecarListener(l service.HTTPListener) Option
type Service ¶
func (Service) DoServeWithDelay ¶ added in v0.6.0
func (Service) NewHelthCheckClient ¶
func (s Service) NewHelthCheckClient(c service.HTTPClientBuilder) *http.HealthCheckClient
Click to show internal directories.
Click to hide internal directories.