signal

package
v0.0.0-...-8ef2ba3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

func New

func New(ctx context.Context, logger *zap.Logger) *Signal

func (*Signal) Add

func (s *Signal) Add(f func(ctx context.Context) error)

func (*Signal) AddIf

func (s *Signal) AddIf(condition bool, f func(ctx context.Context) error)

func (*Signal) AddServer

func (s *Signal) AddServer(srv server.Server)

func (*Signal) AddServerIf

func (s *Signal) AddServerIf(condition bool, srv server.Server)

func (*Signal) Run

func (s *Signal) Run()

Jump to

Keyboard shortcuts

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