defs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	UID    control.ClientUID
	Status Status
}

type Sampler

type Sampler struct {
	Resource  string
	Name      string
	Tags      []control.Tag
	Config    control.SamplerConfig
	Instances map[control.SamplerUID]*SamplerInstance
}

func NewSampler

func NewSampler(resource string, name string) *Sampler

func (*Sampler) GetInstance

func (s *Sampler) GetInstance(uid control.SamplerUID) (*SamplerInstance, bool)

func (*Sampler) SetInstance

func (s *Sampler) SetInstance(uid control.SamplerUID, samplerInstance *SamplerInstance)

type SamplerConn

type SamplerConn interface {
	Configure(*control.SamplerConfig) error
}

type SamplerIdentifier

type SamplerIdentifier struct {
	Resource string
	Name     string
}

func NewSamplerIdentifier

func NewSamplerIdentifier(resource string, name string) SamplerIdentifier

type SamplerInstance

type SamplerInstance struct {
	UID     control.SamplerUID
	Sampler *Sampler
	Stats   control.SamplerSamplingStats
	Conn    SamplerConn
	Dirty   bool
	Status  Status
}

func NewSamplerInstance

func NewSamplerInstance(uid control.SamplerUID, sampler *Sampler) *SamplerInstance

type Status

type Status int
const (
	UnknownStatus Status = iota
	UnregisteredStatus
	RegisteredStatus
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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