event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STEventUnknown = iota
	STEventATCreated
	STEventSTCreated
	STEventTokenInfoHistory
	STEventTokenInfoTree
	STEventTokenInfoListSTs
	STEventMngGrantATEnabled
	STEventMngGrantATDisabled
	STEventMngGrantJWTEnabled
	STEventMngGrantJWTDisabled
	STEventMngGrantLinked
	STEventMngGrantUnlinked
	STEventMngTracingEnabled
	STEventMngTracingDisabled
	STEventInheritedRT
	STEventTransferCodeCreated
	STEventTransferCodeUsed
)

Events for SuperTokens

Variables

View Source
var AllEvents = [...]string{"unknown", "AT_created", "ST_created", "tokeninfo_history", "tokeninfo_tree", "tokeninfo_list_super_tokens", "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