enums

package
v0.0.0-...-27abfae Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity string

Activity represents an activity that can be logged

const (
	ActivityFlashcards  Activity = "FLASHCARDS"
	ActivityTextbook    Activity = "TEXTBOOK"
	ActivityReading     Activity = "READING"
	ActivityListening   Activity = "LISTENING"
	ActivityTranslation Activity = "TRANSLATION"
	ActivityGrammar     Activity = "GRAMMAR"
	ActivityOther       Activity = "OTHER"
)

Activity values

func (Activity) IsValid

func (activity Activity) IsValid() bool

IsValid Activity Value

func (*Activity) Scan

func (activity *Activity) Scan(src interface{}) error

Scan Activity value

func (Activity) Value

func (activity Activity) Value() (driver.Value, error)

Value of Activity

type Language

type Language string

Language represents an language

const (
	LanguageJapanese Language = "JA"
	LanguageKorean   Language = "KR"
	LanguageMandarin Language = "ZH"
	LanguageGerman   Language = "DE"
)

Language values

func (Language) IsValid

func (language Language) IsValid() bool

IsValid Language Value

func (*Language) Scan

func (language *Language) Scan(src interface{}) error

Scan Language value

func (Language) Value

func (language Language) Value() (driver.Value, error)

Value of Language

type Role

type Role string

Role represents a user role

const (
	RoleAdmin    Role = "ADMIN"
	RoleUser     Role = "USER"
	RoleDisabled Role = "DISABLED"
)

Role values

func (Role) IsValid

func (role Role) IsValid() bool

IsValid Role Value

func (*Role) Scan

func (role *Role) Scan(src interface{}) error

Scan Role value

func (Role) Value

func (role Role) Value() (driver.Value, error)

Value of Role

Jump to

Keyboard shortcuts

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