lifecycle

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseError added in v0.2.0

type CloseError struct {
	Causes []error
}

func (*CloseError) Error added in v0.2.0

func (ce *CloseError) Error() string

type Closer

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

func (*Closer) Do

func (c *Closer) Do(ctx context.Context) error

func (*Closer) Done

func (c *Closer) Done() <-chan struct{}

func (*Closer) Err

func (c *Closer) Err() error

type CloserBuilder

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

func NewCloserBuilder

func NewCloserBuilder() *CloserBuilder

func (CloserBuilder) Build

func (cb CloserBuilder) Build() *Closer

func (*CloserBuilder) Require

func (*CloserBuilder) RequireContext

func (cb *CloserBuilder) RequireContext(fn CloserRequireContextFunc) *CloserBuilder

func (*CloserBuilder) Timeout

func (cb *CloserBuilder) Timeout(d time.Duration) *CloserBuilder

func (*CloserBuilder) When

type CloserRequireContextFunc

type CloserRequireContextFunc func(ctx context.Context) error

type CloserRequireFunc

type CloserRequireFunc func() error

type CloserWhenFunc

type CloserWhenFunc func(ctx context.Context) error

type PanicError added in v0.2.0

type PanicError struct {
	Cause error
}

func (*PanicError) Error added in v0.2.0

func (pe *PanicError) Error() string

Jump to

Keyboard shortcuts

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