enums

package
v0.0.0-...-11b8a5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interaction

type Interaction uint8

Interaction is the state a user can be in.

const (
	Dislike Interaction = iota
	Like
	Resqueak
	UndoDislike
	UndoLike
	UndoResqueak
)

Enum of user statuses.

func (*Interaction) Scan

func (p *Interaction) Scan(val any) error

Scan determines how to read the enum value into the type.

func (Interaction) String

func (p Interaction) String() string

String provides a string value for a Interaction int.

func (Interaction) Value

func (p Interaction) Value() (driver.Value, error)

Value provides the DB a string from an int.

func (Interaction) Values

func (Interaction) Values() []string

Values provides a list of valid values for Interaction.

Jump to

Keyboard shortcuts

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