types

package
v0.0.0-...-c863867 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const DEF_INSTID_HASH_METHOD = "sha256"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInstanceId

type ClientInstanceId string

ClientInstanceId

func (*ClientInstanceId) Hash

func (c *ClientInstanceId) Hash(inputMethod string) *ClientInstanceIdHash

func (*ClientInstanceId) String

func (c *ClientInstanceId) String() string

type ClientInstanceIdHash

type ClientInstanceIdHash struct {
	Method string `json:"method"`
	Value  string `json:"value"`
}

func (*ClientInstanceIdHash) Match

func (*ClientInstanceIdHash) String

func (c *ClientInstanceIdHash) String() string

type Tag

type Tag string

Tag is a string of the form "name" or "name=value"

func (Tag) HasValue

func (t Tag) HasValue() bool

func (Tag) String

func (t Tag) String() string

func (Tag) Valid

func (t Tag) Valid() (bool, error)

type Tags

type Tags []Tag

Tags is a slice of Tag

func (*Tags) Set

func (t *Tags) Set(value string) error

func (*Tags) String

func (t *Tags) String() string

type TelemetryAuthToken

type TelemetryAuthToken string

TelemetryAuthToken is a string holding an encoded auth token value

func (*TelemetryAuthToken) String

func (t *TelemetryAuthToken) String() string

func (TelemetryAuthToken) Valid

func (t TelemetryAuthToken) Valid() bool

type TelemetryBlob

type TelemetryBlob struct {
	// contains filtered or unexported fields
}

func NewTelemetryBlob

func NewTelemetryBlob(jsonBlob []byte) *TelemetryBlob

func (*TelemetryBlob) Bytes

func (tb *TelemetryBlob) Bytes() []byte

func (*TelemetryBlob) CheckLimits

func (tb *TelemetryBlob) CheckLimits() error

func (*TelemetryBlob) String

func (tb *TelemetryBlob) String() string

func (*TelemetryBlob) Valid

func (tb *TelemetryBlob) Valid() error

type TelemetryClass

type TelemetryClass int64
const (
	MANDATORY_TELEMETRY TelemetryClass = iota
	OPT_OUT_TELEMETRY
	OPT_IN_TELEMETRY
)

func (*TelemetryClass) String

func (tc *TelemetryClass) String() string

type TelemetryTimeStamp

type TelemetryTimeStamp struct {
	time.Time
}

func Now

func Now() TelemetryTimeStamp

func TimeStampFromString

func TimeStampFromString(tsString string) (ts TelemetryTimeStamp, err error)

func (TelemetryTimeStamp) String

func (t TelemetryTimeStamp) String() string

type TelemetryType

type TelemetryType string

TelemetryType is a string of the format "<family>-<stream>-<subtype>"

func (*TelemetryType) Set

func (t *TelemetryType) Set(value string) error

func (*TelemetryType) String

func (t *TelemetryType) String() string

func (TelemetryType) Valid

func (t TelemetryType) Valid() (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳