Versions in this module Expand all Collapse all v1 v1.2.1 Oct 25, 2022 v1.2.0 Oct 25, 2022 v1.1.0 Sep 26, 2022 v1.0.0 Jun 8, 2022 v0 v0.0.2 Apr 12, 2022 v0.0.1 Apr 12, 2022 Changes in this version + type LenValidator struct + Max *int + Min *int + func (v LenValidator) Validate(value *string) error + type Metric struct + func New(description string, params []*Param, varParam bool) *Metric + func (m *Metric) EvalParams(rawParams []string, sessions interface{}) (params map[string]string, extraParams []string, err error) + type MetricSet map[string]*Metric + func (ml MetricSet) List() (list []string) + type NumberValidator struct + func (v NumberValidator) Validate(value *string) error + type Param struct + func NewConnParam(name, description string) *Param + func NewParam(name, description string) *Param + func NewSessionOnlyParam(name, description string) *Param + func (p *Param) SetRequired() *Param + func (p *Param) WithDefault(value string) *Param + func (p *Param) WithSession() *Param + func (p *Param) WithValidator(validator Validator) *Param + type PatternValidator struct + Pattern string + func (v PatternValidator) Validate(value *string) error + type RangeValidator struct + Max int + Min int + func (v RangeValidator) Validate(value *string) error + type SetValidator struct + CaseInsensitive bool + Set []string + func (v SetValidator) Validate(value *string) error + type Validator interface + Validate func(value *string) error