process

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const Kind = service.Process

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	service.HTTPConn
	Svc  *Service
	Name string
}

func (*Container) Addr

func (c *Container) Addr() string

func (*Container) AddrOrPanic

func (c *Container) AddrOrPanic() string

func (*Container) NewHealthCheckClient

func (c *Container) NewHealthCheckClient() (service.HealthChecker, error)

type Option

type Option interface {
	Apply(*Options)
}

func WithAddr

func WithAddr(addr string) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithHealthCheckFN

func WithHealthCheckFN(s http.HealthCheckFn) Option

func WithName

func WithName(n string) Option

Setters

func WithProfilingEnabled

func WithProfilingEnabled(p bool) Option

func WithSidecarListener

func WithSidecarListener(l service.HTTPListener) Option

func WithStarter

func WithStarter(s func(ctx context.Context) error) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

type Service

type Service struct {
	Base *service.Base
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Service, error)

func (Service) DoServe

func (s Service) DoServe(listener net.Listener) error

func (Service) DoServeWithDelay added in v0.6.0

func (s Service) DoServeWithDelay(listener net.Listener, delay time.Duration) error

func (Service) NewHelthCheckClient

func (s Service) NewHelthCheckClient(c service.HTTPClientBuilder) *http.HealthCheckClient

func (Service) Serve

func (s Service) Serve() error

func (Service) ServeWithDelay added in v0.6.0

func (s Service) ServeWithDelay(delay time.Duration) error

type StartFn

type StartFn func(ctx context.Context) error

Jump to

Keyboard shortcuts

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