enums

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownCycleValidationStr        = "unknown"
	ConsistentMetadataValidationStr  = "consistent-metadata"
	UniqueTransactionIDValidationStr = "unique-transaction-id"
	SessionOnlineValidationStr       = "session-online"
	SessionOfflineValidationStr      = "session-offline"
	EventOrderValidationStr          = "event-order"
)
View Source
const (
	UnknownEventValidationStr       = "unknown"
	BootTimeValidationStr           = "boot-time-validation"
	BirthdateValidationStr          = "birthdate-validation"
	MinBootDurationValidationStr    = "min-boot-duration"
	BirthdateAlignmentValidationStr = "birthdate-alignment"
	ValidEventTypeValidationStr     = "valid-event-type"
	ConsistentDeviceIDValidationStr = "consistent-device-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleType

type CycleType int
const (
	BootTime CycleType = iota
	Reboot
)

func ParseCycleType

func ParseCycleType(cycleType string) CycleType

ParseCycleType returns the CycleType enum when given a string.

type CycleValidationType

type CycleValidationType int
const (
	UnknownCycleValidation CycleValidationType = iota
	ConsistentMetadataValidation
	UniqueTransactionIDValidation
	SessionOnlineValidation
	SessionOfflineValidation
	EventOrderValidation
)

func (CycleValidationType) String

func (v CycleValidationType) String() string

func (*CycleValidationType) UnmarshalText

func (v *CycleValidationType) UnmarshalText(text []byte) error

type EventValidationType

type EventValidationType int
const (
	UnknownEventValidation EventValidationType = iota
	BootTimeValidation
	BirthdateValidation
	MinBootDurationValidation
	BirthdateAlignmentValidation
	ValidEventTypeValidation
	ConsistentDeviceIDValidation
)

func (EventValidationType) String

func (v EventValidationType) String() string

func (*EventValidationType) UnmarshalText

func (v *EventValidationType) UnmarshalText(text []byte) error

type SessionType

type SessionType int

SessionType is an enum to determine which session an event should be searched from

const (
	Previous SessionType = iota
	Current
)

func ParseSessionType

func ParseSessionType(session string) SessionType

ParseSessionType returns the SessionType enum when given a string.

Jump to

Keyboard shortcuts

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