Documentation ¶
Index ¶
- func ConvertParameters(params fieldtype.FieldParameters, paramStruct interface{}) error
- func GenerateThumbnail(imagePath string) error
- func RegisterJSONOutputer(identifier string, outputer querier.Outputer)
- func ThumbnailFolder() string
- type CheckboxHandler
- type DatetimeHandler
- type DatetimeParameters
- type FileHandler
- func (handler FileHandler) AfterDelete(ctx context.Context, value interface{}) error
- func (handler FileHandler) BeforeStore(ctx context.Context, value interface{}, existing interface{}, mode string) (interface{}, error)
- func (handler FileHandler) DBField() string
- func (handler FileHandler) LoadInput(ctx context.Context, input interface{}, mode string) (interface{}, error)
- type FileParameters
- type ImageHandler
- func (handler ImageHandler) AfterDelete(ctx context.Context, value interface{}) error
- func (handler ImageHandler) BeforeStore(ctx context.Context, value interface{}, existing interface{}, mode string) (interface{}, error)
- func (handler ImageHandler) DBField() string
- func (handler ImageHandler) LoadInput(ctx context.Context, input interface{}, mode string) (interface{}, error)
- type ImageParameter
- type IntHandler
- type JSONHandler
- type JSONParameters
- type Json
- type Map
- type MapHandler
- type MapList
- type MapListHandler
- type PasswordHandler
- type RadioHandler
- type RelationHandler
- type RelationListHandler
- type RichTextHandler
- type SelectHandler
- type SelectParameters
- type TextHandler
- type TextParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertParameters ¶
func ConvertParameters(params fieldtype.FieldParameters, paramStruct interface{}) error
convert parameters(definition.FieldParameters - map[string]interface{}) to struct using mapstructure
func GenerateThumbnail ¶
func RegisterJSONOutputer ¶
Types ¶
type CheckboxHandler ¶
* Checkbox handler **
func (CheckboxHandler) DBField ¶
func (handler CheckboxHandler) DBField() string
type DatetimeHandler ¶
func (DatetimeHandler) DBField ¶
func (handler DatetimeHandler) DBField() string
type DatetimeParameters ¶
type DatetimeParameters struct {
Dateonly bool `mapstructure:"dateonly"`
}
type FileHandler ¶
type FileHandler struct { fieldtype.FieldDef Params FileParameters }
func (FileHandler) AfterDelete ¶
func (handler FileHandler) AfterDelete(ctx context.Context, value interface{}) error
After delete content, delete file, skip error if there is any wrong(eg. image not existing).
func (FileHandler) BeforeStore ¶
func (handler FileHandler) BeforeStore(ctx context.Context, value interface{}, existing interface{}, mode string) (interface{}, error)
Image can be loaded from rest, or local api
func (FileHandler) DBField ¶
func (handler FileHandler) DBField() string
type FileParameters ¶
type ImageHandler ¶
func (ImageHandler) AfterDelete ¶
func (handler ImageHandler) AfterDelete(ctx context.Context, value interface{}) error
After delete content, delete image&thumbnail, skip error if there is any wrong(eg. image not existing).
func (ImageHandler) BeforeStore ¶
func (handler ImageHandler) BeforeStore(ctx context.Context, value interface{}, existing interface{}, mode string) (interface{}, error)
Image can be loaded from rest, or local api
func (ImageHandler) DBField ¶
func (handler ImageHandler) DBField() string
type ImageParameter ¶
type ImageParameter struct {
Format string `mapstructure:"format"` //eg. "jpg, png" low case
}
type IntHandler ¶
* Int handler *
func (IntHandler) DBField ¶
func (handler IntHandler) DBField() string
type JSONHandler ¶
type JSONHandler struct { fieldtype.FieldDef Params JSONParameters }
JSON Handler
func (JSONHandler) DBField ¶
func (handler JSONHandler) DBField() string
type JSONParameters ¶
type MapListHandler ¶
MapListHandler
func (MapListHandler) DBField ¶
func (handler MapListHandler) DBField() string
type PasswordHandler ¶
* Password handler *
func (PasswordHandler) DBField ¶
func (handler PasswordHandler) DBField() string
type RadioHandler ¶
* Radio handler **
func (RadioHandler) DBField ¶
func (handler RadioHandler) DBField() string
type RelationHandler ¶
func (RelationHandler) DBField ¶
func (handler RelationHandler) DBField() string
type RelationListHandler ¶
func (RelationListHandler) DBField ¶
func (handler RelationListHandler) DBField() string
type RichTextHandler ¶
**** RichTextHandler *****
func (RichTextHandler) DBField ¶
func (handler RichTextHandler) DBField() string
type SelectHandler ¶
type SelectHandler struct { fieldtype.FieldDef Params SelectParameters }
func (SelectHandler) DBField ¶
func (handler SelectHandler) DBField() string
type SelectParameters ¶
type TextHandler ¶
type TextHandler struct { fieldtype.FieldDef Params TextParameters }
func (TextHandler) DBField ¶
func (handler TextHandler) DBField() string
func (TextHandler) LoadInput ¶
func (handler TextHandler) LoadInput(ctx context.Context, input interface{}, mode string) (interface{}, error)
func (TextHandler) ValidateDefinition ¶
func (handler TextHandler) ValidateDefinition() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.