models

package
v0.0.0-...-a116ab3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SomeStatusIdle       = 0
	SomeStatusProcessing = 1
	SomeStatusError      = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Some

type Some struct {
	gorm.Model
	Name       string `json:"name"`
	Url        string `json:"url"`
	ClientId   int    `json:"client_id"`
	Status     int    `json:"status" gorm:"index:idx_status"`
	StatusText string `json:"status_text"`
}

func NewSome

func NewSome() *Some

func (*Some) TableName

func (s *Some) TableName() string

func (*Some) ValidationErrorMessage

func (s *Some) ValidationErrorMessage(tag string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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