global

package
v0.0.0-...-f537024 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	Deadline() (deadline time.Time, ok bool)
	Err() error
	Value(key interface{}) interface{}
	Done() <-chan struct{}
	Config() *configure.Config
	Inst() *Instances
}

func New

func New(ctx context.Context, config *configure.Config) Context

func WithCancel

func WithCancel(ctx Context) (Context, context.CancelFunc)

func WithDeadline

func WithDeadline(ctx Context, deadline time.Time) (Context, context.CancelFunc)

func WithTimeout

func WithTimeout(ctx Context, timeout time.Duration) (Context, context.CancelFunc)

func WithValue

func WithValue(ctx Context, key interface{}, value interface{}) Context

type Instances

type Instances struct {
	Redis      instance.Redis
	Mongo      instance.Mongo
	Prometheus instance.Prometheus
	Discord    instance.Discord
}

Jump to

Keyboard shortcuts

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