constants

package
v2.28.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StringsEmpty - a empty space
	StringsEmpty string = ""

	// StringsComma - a comma
	StringsComma string = ","

	// StringsWhitespace - a white space
	StringsWhitespace string = " "

	// StringsPKG - the package abbreviation
	StringsPKG string = "pkg"

	// StringsFunc - the function abbreviation
	StringsFunc string = "func"

	// StringsMetric - metric word
	StringsMetric string = "metric"

	// StringsTimestamp - timestamp word
	StringsTimestamp string = "timestamp"

	// StringsValue - value word
	StringsValue string = "value"

	// StringsTags - tags word
	StringsTags string = "tags"

	// StringsText - text word
	StringsText string = "text"

	// StringsKeyset - keyset word
	StringsKeyset string = "keyset"

	// StringsTTL - ttl word
	StringsTTL string = "ttl"

	// StringsKSID - ksid word
	StringsKSID string = "ksid"

	// StringsTargetTTL - target ttl tag
	StringsTargetTTL string = "target_ttl"

	// StringsTargetKSID - target ksid tag
	StringsTargetKSID string = "target_ksid"

	// StringsKeyspace - target keyspace tag
	StringsKeyspace string = "keyspace"

	// StringsProtocol - protocol tag
	StringsProtocol string = "protocol"

	// StringsBar - bar character
	StringsBar string = "/"

	// StringsHost - host tag
	StringsHost string = "host"

	// StringsIP - ip tag
	StringsIP string = "ip"

	// StringsSource - source tag
	StringsSource string = "source"

	// StringsOperation - operation tag
	StringsOperation string = "operation"

	// StringsType - type tag
	StringsType string = "type"

	// StringsHTTP - "http" word
	StringsHTTP string = "http"

	// StringsMetricScyllaQuery - metric name for scylla query
	StringsMetricScyllaQuery string = "scylla.query"

	// StringsMetricScyllaQueryDuration - metric name for scylla query duration
	StringsMetricScyllaQueryDuration string = "scylla.query.duration"

	// StringsMetricScyllaQueryError - metric name for scylla query errors
	StringsMetricScyllaQueryError string = "scylla.query.error"

	// StringsMetricNetworkIP - metric name for network ip
	StringsMetricNetworkIP string = "network.ip"

	// StringsAll - "all" word
	StringsAll string = "all"

	// StringsUDP - "udp" word
	StringsUDP string = "udp"

	// StringsMetricNetworkConnection - network connection metric
	StringsMetricNetworkConnection string = "network.connection"

	// StringsUnknown - "unknown" word
	StringsUnknown string = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUDOperation

type CRUDOperation string

CRUDOperation - defines a database CRUD operation

const (
	// CRUDOperationCreate - CRUD operation
	CRUDOperationCreate CRUDOperation = "create"

	// CRUDOperationInsert - CRUD operation
	CRUDOperationInsert CRUDOperation = "insert"

	// CRUDOperationSelect - CRUD operation
	CRUDOperationSelect CRUDOperation = "select"

	// CRUDOperationDelete - CRUD operation
	CRUDOperationDelete CRUDOperation = "delete"

	// CRUDOperationUpdate - CRUD operation
	CRUDOperationUpdate CRUDOperation = "update"

	// CRUDOperationDrop - CRUD operation
	CRUDOperationDrop CRUDOperation = "drop"
)

type SourceType

type SourceType struct {

	// Name - the source's name
	Name string

	// ErrorCodePrefix - the error code prefix for this error
	ErrorCodePrefix string
}

SourceType - the type of the source

var (
	// SourceTypeHTTP - defines the source's data
	SourceTypeHTTP *SourceType = &SourceType{
		Name:            "http",
		ErrorCodePrefix: errorCodeHTTP,
	}

	// SourceTypeUDP - defines the source's data
	SourceTypeUDP *SourceType = &SourceType{
		Name:            "udp",
		ErrorCodePrefix: errorCodeUDP,
	}

	// SourceTypeTelnetNetdata - defines the source's data
	SourceTypeTelnetNetdata *SourceType = &SourceType{
		Name:            "telnet-netdata",
		ErrorCodePrefix: errorCodeTelnetNetdata,
	}

	// SourceTypeTelnetOpenTSDB - defines the source's data
	SourceTypeTelnetOpenTSDB *SourceType = &SourceType{
		Name:            "telnet-opentsdb",
		ErrorCodePrefix: errorCodeTelnetOpenTSDB,
	}
)

Jump to

Keyboard shortcuts

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