Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gitxt ¶
type Gitxt struct { Description string `binding:"MaxSize(255)"` IsPublic bool `binding:"Default:1"` // Validation builtin into Macaron/Binding doesn't validates theses slices // See the router view for manual validation FilesFilename []string `binding:"Required;MaxSize(255);MinSizeSlice(1)"` FilesContent []string `binding:"Required;MaxSize(255);MinSizeSlice(1)"` // no, 1h, 4h, 1d, 2d, 3d, 4d, 5d, 6d, 7d, 1m, 1y ExpiryHours int64 `binding:"In(0,1,4,24,48,72,96,120,144,168,730,8760);Default(0)"` }
Gitxt form struct
type GitxtDelete ¶
GitxtDelete form
type GitxtEdit ¶
type GitxtEdit struct { Description string `binding:"MaxSize(255)"` // Validation builtin into Macaron/Binding doesn't validates theses slices // See the router view for manual validation FilesFilename []string `binding:"Required;MaxSize(255);MinSizeSlice(1)"` FilesContent []string `binding:"Required;MaxSize(255);MinSizeSlice(1)"` FilesNotHandled []bool // no, 1h, 4h, 1d, 2d, 3d, 4d, 5d, 6d, 7d, 1m, 1y ExpiryHours int64 `binding:"In(0,1,4,24,48,72,96,120,144,168,730,8760);Default(0)"` }
GitxtEdit form
type Login ¶
type Login struct { UserName string `binding:"Required;MaxSize(254)"` Password string `binding:"Required;MaxSize(255)"` Remember bool }
Login form
type Register ¶
type Register struct { UserName string `binding:"Required;AlphaDashDot;MaxSize(35)"` Email string `binding:"Required;Email;MaxSize(254)"` Password string `binding:"Required;MaxSize(255)"` Repeat string }
Register form
type UpdateSettingsProfile ¶
type UpdateSettingsProfile struct {
Email string `binding:"Required;Email;MaxSize(254)"`
}
UpdateSettingsProfile form struct
Click to show internal directories.
Click to hide internal directories.