memory

package module
v4.8.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 Imported by: 2

README

Documentation

Index

Constants

View Source
const PluginName string = "memory"

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	// UnmarshalKey takes a single key and unmarshal it into a Struct.
	UnmarshalKey(name string, out any) error
	// Has checks if config section exists.
	Has(name string) bool
}

type Logger

type Logger interface {
	NamedLogger(name string) *zap.Logger
}

type Plugin

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

func (*Plugin) Collects added in v4.2.0

func (p *Plugin) Collects() []*dep.In

func (*Plugin) DriverFromConfig added in v4.1.0

func (p *Plugin) DriverFromConfig(configKey string, pq jobs.Queue, pipeline jobs.Pipeline, _ chan<- jobs.Commander) (jobs.Driver, error)

DriverFromConfig constructs memory driver from the .rr.yaml configuration

func (*Plugin) DriverFromPipeline added in v4.1.0

func (p *Plugin) DriverFromPipeline(pipe jobs.Pipeline, pq jobs.Queue, _ chan<- jobs.Commander) (jobs.Driver, error)

DriverFromPipeline constructs memory driver from pipeline

func (*Plugin) Init

func (p *Plugin) Init(log Logger, cfg Configurer) error

func (*Plugin) KvFromConfig

func (p *Plugin) KvFromConfig(key string) (kv.Storage, error)

func (*Plugin) Name

func (p *Plugin) Name() string

type Tracer added in v4.2.0

type Tracer interface {
	Tracer() *sdktrace.TracerProvider
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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