Documentation
¶
Index ¶
Constants ¶
View Source
const ( FolderNameKey = "folder_name" FolderDescriptionKey = "folder_description" )
Variables ¶
View Source
var ( FolderNameKeyFn = helper.PathKeyFn(FolderNameKey) FolderDescriptionKeyFn = helper.PathKeyFn(FolderDescriptionKey) )
Functions ¶
func Idx ¶
func Idx(p ...string) []contract.IndexEntry
func IdxSrch ¶
func IdxSrch(p ...string) []contract.SearchIndexEntry
func Rules ¶
func Rules(p ...string) contractpkg.QueryParamRules
Types ¶
type Core ¶
type Core struct {
FolderName *string `json:"folder_name" conform:"title,trim" validate:"nnpt,nz"`
FolderDescription *string `json:"folder_description" conform:"ucfirst,trim" validate:"nnpt"`
}
func ApplyCore ¶
func ApplyCore(c *Core, modifiers ...CoreOption) Core
func (*Core) GetFolderDescription ¶ added in v0.0.204
func (*Core) GetFolderName ¶
func (*Core) SetFolderDescription ¶ added in v0.0.204
func (*Core) SetFolderName ¶
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
func WithFolderDescription ¶ added in v0.0.204
func WithFolderDescription(x string) CoreOption
func WithFolderName ¶
func WithFolderName(x string) CoreOption
type Folder ¶
type Folder struct {
Meta `bson:",inline" validate:"recurse"`
Core `bson:",inline" validate:"recurse"`
}
Folder represents a folder.
type Meta ¶
type Meta struct{}
func ApplyMeta ¶
func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
Click to show internal directories.
Click to hide internal directories.