event

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MTEventUnknown = iota
	MTEventCreated
	MTEventATCreated
	MTEventMTCreated
	MTEventTokenInfoIntrospect
	MTEventTokenInfoHistory
	MTEventTokenInfoTree
	MTEventTokenInfoListMTs
	MTEventMngGrantATEnabled
	MTEventMngGrantATDisabled
	MTEventMngGrantJWTEnabled
	MTEventMngGrantJWTDisabled
	MTEventMngGrantLinked
	MTEventMngGrantUnlinked
	MTEventMngTracingEnabled
	MTEventMngTracingDisabled
	MTEventInheritedRT
	MTEventTransferCodeCreated
	MTEventTransferCodeUsed
)

Events for Mytokens

Variables

View Source
var AllEvents = [...]string{"unknown", "created", "AT_created", "MT_created", "tokeninfo_introspect", "tokeninfo_history", "tokeninfo_tree", "tokeninfo_list_mytokens", "mng_enabled_AT_grant", "mng_disabled_AT_grant", "mng_enabled_JWT_grant", "mng_disabled_JWT_grant", "mng_linked_grant", "mng_unlinked_grant", "mng_enabled_tracing", "mng_disabled_tracing", "inherited_RT", "transfer_code_created", "transfer_code_used"}

AllEvents hold all possible Events

Functions

This section is empty.

Types

type Event

type Event struct {
	Type    int
	Comment string
}

Event is an enum like type for events

func FromNumber

func FromNumber(number int, comment string) *Event

FromNumber creates an Event from the number

func NewEvent

func NewEvent(typ, comment string) *Event

NewEvent creates a new Event from the event string

func (*Event) Scan

func (e *Event) Scan(src interface{}) error

Scan implements the sql.Scanner interface

func (*Event) String

func (e *Event) String() string

func (*Event) Valid

func (e *Event) Valid() bool

Valid checks that Event is a defined Event

func (*Event) Value

func (e *Event) Value() (driver.Value, error)

Value implements the sql.Valuer interface

Jump to

Keyboard shortcuts

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