models

package
v0.0.0-...-c0bc535 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Init

func Init() (err error)

Types

type Stream

type Stream struct {
	URL               string `gorm:"type:varchar(256);primary_key;unique"`
	CustomPath        string `gorm:"type:varchar(256)"`
	IdleTimeout       int
	HeartbeatInterval int
}

type User

type User struct {
	ID       string `structs:"id" gorm:"primary_key;type:TEXT;not null" form:"id" json:"id"`
	Username string `gorm:"type:TEXT"`
	Password string `gorm:"type:TEXT"`
	Role     string `gorm:"type:TEXT"`
	Reserve1 string `gorm:"type:TEXT"`
	Reserve2 string `gorm:"type:TEXT"`
}

func (*User) BeforeCreate

func (user *User) BeforeCreate(scope *gorm.Scope) error

Jump to

Keyboard shortcuts

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