Documentation ¶ Index ¶ func DBOpen() *gorm.DB type Project func (Project) TableName() string type TextType func (t TextType) String() string type User func (u *User) HashPassword() func (User) TableName() string type Validate Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DBOpen ¶ func DBOpen() *gorm.DB Types ¶ type Project ¶ type Project struct { ID int32 Name string `valid:"Required;Max(256)"` Description string DescType TextType } func (Project) TableName ¶ func (Project) TableName() string type TextType ¶ type TextType int8 const ( TEXT TextType = 0 HTML TextType = 1 MD TextType = 2 ) func (TextType) String ¶ func (t TextType) String() string type User ¶ type User struct { ID int32 `json:"id"` Name string `json:"name"` Email string `json:"email"` Password string `json:"password"` FullName string `json:"full_name"` IsActivate bool `json:"is_activate"` Salt string } func (*User) HashPassword ¶ func (u *User) HashPassword() func (User) TableName ¶ func (User) TableName() string type Validate ¶ type Validate interface { Validate() (bool, error) } Source Files ¶ View all Source files init.go project.go text_type.go user.go validation.go Click to show internal directories. Click to hide internal directories.