types

package
v0.0.0-...-6b19e2d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserLocale

type UserLocale struct{ language.Tag }

func (UserLocale) MarshalJSON

func (l UserLocale) MarshalJSON() ([]byte, error)

func (*UserLocale) Scan

func (l *UserLocale) Scan(src any) error

func (*UserLocale) UnmarshalJSON

func (l *UserLocale) UnmarshalJSON(bytes []byte) error

func (UserLocale) Value

func (l UserLocale) Value() (driver.Value, error)

type UserPronoun

type UserPronoun struct{ pronouns.Pronoun }

func (UserPronoun) MarshalJSON

func (p UserPronoun) MarshalJSON() ([]byte, error)

func (*UserPronoun) Scan

func (p *UserPronoun) Scan(src any) error

func (*UserPronoun) UnmarshalJSON

func (p *UserPronoun) UnmarshalJSON(bytes []byte) error

func (UserPronoun) Value

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

type UserRole

type UserRole int64
const (
	RoleMember UserRole = iota
	RoleAdmin
	RoleToDelete
)

func (UserRole) IsValid

func (r UserRole) IsValid() bool

func (UserRole) String

func (r UserRole) String() string

type UserZone

type UserZone struct{ *time.Location }

func (UserZone) MarshalJSON

func (l UserZone) MarshalJSON() ([]byte, error)

func (*UserZone) Scan

func (l *UserZone) Scan(src any) error

func (*UserZone) UnmarshalJSON

func (l *UserZone) UnmarshalJSON(bytes []byte) error

func (UserZone) Value

func (l UserZone) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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