proxy

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(rawConfig []byte) (*Context, error)

func (*Context) AddWarning

func (c *Context) AddWarning(msg string)

func (*Context) AttachContext

func (c *Context) AttachContext(parentCtx context.Context)

func (*Context) ConfigKeys

func (c *Context) ConfigKeys() []string

func (*Context) ConfigValue

func (c *Context) ConfigValue(key string) (string, bool)

func (*Context) Done

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

func (*Context) IsDone

func (c *Context) IsDone() bool

func (*Context) Load

func (c *Context) Load(key string) (interface{}, bool)

func (*Context) LoadTo

func (c *Context) LoadTo(key string, dest interface{}) error

func (*Context) Logger

func (c *Context) Logger() logrus.FieldLogger

func (*Context) RawConfig

func (c *Context) RawConfig() []byte

func (*Context) RawContext added in v2.0.8

func (c *Context) RawContext() context.Context

func (*Context) ReleaseContext

func (c *Context) ReleaseContext()

func (*Context) ResetWarnings

func (c *Context) ResetWarnings()

func (*Context) Store

func (c *Context) Store(key string, obj interface{})

func (*Context) Warnings

func (c *Context) Warnings(clear bool) []types.Warning

type ContextManager

type ContextManager struct {
	TasksLimit     int
	InstancesLimit int

	ExampleConfig yaml.Node // example config
	// contains filtered or unexported fields
}

func NewContextManager

func NewContextManager() *ContextManager

func (*ContextManager) AcquireTask

func (cm *ContextManager) AcquireTask(id string) bool

func (*ContextManager) DefineExampleConfig added in v2.1.0

func (cm *ContextManager) DefineExampleConfig(cfg string) error

func (*ContextManager) DefineInstancesLimit

func (cm *ContextManager) DefineInstancesLimit(limit int) error

func (*ContextManager) DefineTasksPerInstanceLimit

func (cm *ContextManager) DefineTasksPerInstanceLimit(limit int) error

func (*ContextManager) MarkTaskAsCompleted

func (cm *ContextManager) MarkTaskAsCompleted(id string)

func (*ContextManager) ReleaseTask

func (cm *ContextManager) ReleaseTask(id string)

func (*ContextManager) TaskContext

func (cm *ContextManager) TaskContext(id string) context.Context

type Warning

type Warning struct {
	Message   string
	Timestamp time.Time
}

Jump to

Keyboard shortcuts

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