confirm_type

package
v0.0.0-...-e02a78a Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Len

func Len() int

Types

type ConfirmType

type ConfirmType byte
const (
	NewAccount ConfirmType = iota
	ForgetPassword
	Unknown ConfirmType = 255
)

func FromString

func FromString(s string) ConfirmType

func Random

func Random() ConfirmType

func (ConfirmType) GetSubject

func (c ConfirmType) GetSubject() string

func (ConfirmType) GetTemplate

func (c ConfirmType) GetTemplate() *template.Template

func (ConfirmType) MarshalJSON

func (c ConfirmType) MarshalJSON() ([]byte, error)

func (ConfirmType) MarshalYAML

func (c ConfirmType) MarshalYAML() (any, error)

func (ConfirmType) String

func (c ConfirmType) String() string

func (*ConfirmType) UnmarshalJSON

func (c *ConfirmType) UnmarshalJSON(b []byte) error

func (*ConfirmType) UnmarshalYAML

func (c *ConfirmType) UnmarshalYAML(b *yaml.Node) error

type ConfirmTypes

type ConfirmTypes []ConfirmType

func (ConfirmTypes) GormDBDataType

func (ConfirmTypes) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (ConfirmTypes) GormDataType

func (ConfirmTypes) GormDataType() string

func (ConfirmTypes) GormValue

func (js ConfirmTypes) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)

func (ConfirmTypes) MarshalJSON

func (c ConfirmTypes) MarshalJSON() ([]byte, error)

func (ConfirmTypes) MarshalYAML

func (c ConfirmTypes) MarshalYAML() (any, error)

func (*ConfirmTypes) Scan

func (c *ConfirmTypes) Scan(value interface{}) (err error)

func (*ConfirmTypes) UnmarshalJSON

func (c *ConfirmTypes) UnmarshalJSON(b []byte) error

func (*ConfirmTypes) UnmarshalYAML

func (c *ConfirmTypes) UnmarshalYAML(b *yaml.Node) error

func (ConfirmTypes) Value

func (c ConfirmTypes) Value() (value driver.Value, err error)

Jump to

Keyboard shortcuts

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