Documentation
¶
Index ¶
- Constants
- Variables
- type ConfigDocument
- type Disk
- func (d *Disk) DeleteSampler(resource string, sampler string) error
- func (d *Disk) GetSampler(resource string, sampler string) (control.SamplerConfig, error)
- func (d *Disk) RangeSamplers(fn func(resource string, sampler string, config control.SamplerConfig)) error
- func (d *Disk) SetSampler(resource string, sampler string, config control.SamplerConfig) error
- type Nop
- func (d *Nop) DeleteSampler(_ string, _ string) error
- func (d *Nop) GetSampler(_ string, _ string) (control.SamplerConfig, error)
- func (d *Nop) RangeSamplers(_ func(resource string, sampler string, config control.SamplerConfig)) error
- func (d *Nop) SetSampler(_ string, _ string, _ control.SamplerConfig) error
- type Options
- type SamplerEntry
- type Storage
- type Type
Constants ¶
View Source
const ( NopType = Type(iota) DiskType )
Variables ¶
View Source
var (
ErrUnknownSampler = fmt.Errorf("unknown sampler")
)
Functions ¶
This section is empty.
Types ¶
type ConfigDocument ¶ added in v0.2.0
type ConfigDocument struct {
Samplers []SamplerEntry
}
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
func (*Disk) DeleteSampler ¶ added in v0.2.0
func (*Disk) GetSampler ¶ added in v0.2.0
func (*Disk) RangeSamplers ¶ added in v0.2.0
func (*Disk) SetSampler ¶ added in v0.2.0
type Nop ¶ added in v0.1.0
type Nop struct { }
func (*Nop) GetSampler ¶ added in v0.2.0
func (*Nop) RangeSamplers ¶ added in v0.2.0
func (*Nop) SetSampler ¶ added in v0.2.0
type Options ¶ added in v0.1.0
type Options struct { // Type contains the backend used to store data Type Type // Path contains the root folder where the data will be stored Path string }
func NewOptionsDefault ¶ added in v0.1.0
func NewOptionsDefault() *Options
type SamplerEntry ¶ added in v0.2.0
type SamplerEntry struct { Resource string Name string Config control.SamplerConfig }
type Storage ¶
type Storage interface { GetSampler(resource string, sampler string) (control.SamplerConfig, error) RangeSamplers(func(resource string, sampler string, config control.SamplerConfig)) error SetSampler(resource string, sampler string, config control.SamplerConfig) error DeleteSampler(resource string, sampler string) error }
Click to show internal directories.
Click to hide internal directories.