gracefulquit

package
v1.3.80 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway added in v1.3.80

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

func (*Gateway) Name added in v1.3.80

func (gw *Gateway) Name() string

func (*Gateway) Run added in v1.3.80

func (gw *Gateway) Run() error

func (*Gateway) Stop added in v1.3.80

func (gw *Gateway) Stop() error

type GracefulQuit

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

func New

func New() *GracefulQuit

func (*GracefulQuit) Context

func (gc *GracefulQuit) Context() context.Context

func (*GracefulQuit) WaitToQuit

func (gc *GracefulQuit) WaitToQuit(gss ...GracefulService)

type GracefulService

type GracefulService interface {
	Stop() error
	Name() string
}

Jump to

Keyboard shortcuts

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