common

package
v0.0.0-...-dade96f Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: AGPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Run

type Run struct {
	Plugin string
	Launch time.Time
	// contains filtered or unexported fields
}

func NewRun

func NewRun(pluginName string) *Run

func (*Run) Context

func (r *Run) Context() context.Context

Context returns the context for the run

func (*Run) Except

func (r *Run) Except(err error, fields ...string)

func (*Run) Logger

func (r *Run) Logger() *zap.Logger

Logger returns the logger for the run

func (*Run) WithContext

func (r *Run) WithContext(ctx context.Context)

WithContext sets the context for the run

func (*Run) WithLogger

func (r *Run) WithLogger(logger *zap.Logger)

WithLogger sets the logger for the run

type StartParameters

type StartParameters struct {
	Logger         *zap.Logger
	DB             *gorm.DB
	Redis          *redis.Client
	Tokens         map[string]string
	State          *state.State
	FeatureFlagger *featureflag.FeatureFlagger
	Publisher      *events.Publisher
}

type StopParameters

type StopParameters struct {
	Logger         *zap.Logger
	DB             *gorm.DB
	Redis          *redis.Client
	Tokens         map[string]string
	State          *state.State
	FeatureFlagger *featureflag.FeatureFlagger
	Publisher      *events.Publisher
}

Jump to

Keyboard shortcuts

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