prettyenum

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatasetDatasetTypeTracesModel = DatasetType(models.DatasetDatasetTypeTRACES)
	DatasetDatasetTypeLogsModel   = DatasetType(models.DatasetDatasetTypeLOGS)
)

Supported dataset types.

View Source
const (
	NumericFilterComparisonTypeEqualModel              = NumericFilterComparisonType(models.NumericFilterComparisonTypeEQUAL)
	NumericFilterComparisonTypeNotEqualModel           = NumericFilterComparisonType(models.NumericFilterComparisonTypeNOTEQUAL)
	NumericFilterComparisonTypeGreaterThanModel        = NumericFilterComparisonType(models.NumericFilterComparisonTypeGREATERTHAN)
	NumericFilterComparisonTypeGreaterThanOrEqualModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeGREATERTHANOREQUAL)
	NumericFilterComparisonTypeLessThanModel           = NumericFilterComparisonType(models.NumericFilterComparisonTypeLESSTHAN)
	NumericFilterComparisonTypeLessThanOrEqualModel    = NumericFilterComparisonType(models.NumericFilterComparisonTypeLESSTHANOREQUAL)
)

Supported comparison types.

Supported matcher types.

Supported matcher types.

Variables

View Source
var (
	DatasetDatasetTypeTracesLower = DatasetType(strings.ToLower(string(DatasetDatasetTypeTracesModel)))
	DatasetDatasetTypeLogsLower   = DatasetType(strings.ToLower(string(DatasetDatasetTypeLogsModel)))
)

Functions

func ValidateDatasetDatasetType

func ValidateDatasetDatasetType(raw string) error

ValidateDatasetDatasetType validates the raw dataset type value.

func ValidateNumericFilterComparisonType

func ValidateNumericFilterComparisonType(raw string) error

ValidateNumericFilterComparisonType validates the raw comparison type value.

func ValidateSpanFilterMatchType

func ValidateSpanFilterMatchType(raw string) error

ValidateSpanFilterMatchType validates the raw matcher type value.

func ValidateStringFilterMatchType

func ValidateStringFilterMatchType(raw string) error

ValidateStringFilterMatchType validates the raw matcher type value.

Types

type DatasetType

type DatasetType string

DatasetType is a wrapper of models.DatasetDatasetType with support for user friendly values.

func DatasetTypeFromModel

func DatasetTypeFromModel(m models.DatasetDatasetType) DatasetType

DatasetTypeFromModel returns the human-readable string for a matcher type enum.

func NewDatasetDatasetType

func NewDatasetDatasetType(raw string) (DatasetType, error)

NewDatasetDatasetType creates a new dataset type.

func (DatasetType) Model

Model returns the model value of the dataset type.

type NumericFilterComparisonType

type NumericFilterComparisonType string

NumericFilterComparisonType is a wrapper of models.TraceSearchFilterNumericFilterComparisonType with support of user friendly values.

func NewNumericFilterComparisonType

func NewNumericFilterComparisonType(raw string) (NumericFilterComparisonType, error)

NewNumericFilterComparisonType creates a new comparison type.

func (NumericFilterComparisonType) Model

Model returns the model value of the comparison type.

type SpanFilterMatchType

type SpanFilterMatchType string

SpanFilterMatchType is a wrapper of models.TraceSearchFilterSpanFilterMatchType with support of user friendly values.

func NewSpanFilterMatchType

func NewSpanFilterMatchType(raw string) (SpanFilterMatchType, error)

NewSpanFilterMatchType creates a new matcher type,

func SpanFilterMatchTypeFromModel

func SpanFilterMatchTypeFromModel(m models.SpanFilterSpanFilterMatchType) SpanFilterMatchType

SpanFilterMatchTypeFromModel returns the human readable string for a matcher type enum

func (SpanFilterMatchType) Model

Model returns the model value of the matcher type.

type StringFilterMatchType

type StringFilterMatchType string

StringFilterMatchType is a wrapper of models.TraceSearchFilterStringFilterMatchType with support of user friendly values.

func NewStringFilterMatchType

func NewStringFilterMatchType(raw string) (StringFilterMatchType, error)

NewStringFilterMatchType creates a new matcher type,

func StringFilterMatchTypeFromModel

func StringFilterMatchTypeFromModel(m models.StringFilterStringFilterMatchType) StringFilterMatchType

StringFilterMatchTypeFromModel returns the human readable string for a matcher type enum

func (StringFilterMatchType) Model

Model returns the model value of the matcher type.

Jump to

Keyboard shortcuts

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