Documentation ¶
Index ¶
- func Len() int
- type ContentType
- type ContentTypes
- func (ContentTypes) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (ContentTypes) GormDataType() string
- func (js ContentTypes) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)
- func (c ContentTypes) MarshalJSON() ([]byte, error)
- func (c ContentTypes) MarshalYAML() (any, error)
- func (c *ContentTypes) Scan(value interface{}) (err error)
- func (c *ContentTypes) UnmarshalJSON(b []byte) error
- func (c *ContentTypes) UnmarshalYAML(b *yaml.Node) error
- func (c ContentTypes) Value() (value driver.Value, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
type ContentType byte
const ( Download ContentType = iota Input Upload VM Unknown ContentType = 255 )
func FromString ¶
func FromString(s string) ContentType
func Random ¶
func Random() ContentType
func (ContentType) MarshalJSON ¶
func (c ContentType) MarshalJSON() ([]byte, error)
func (ContentType) MarshalYAML ¶
func (c ContentType) MarshalYAML() (any, error)
func (ContentType) String ¶
func (c ContentType) String() string
func (*ContentType) UnmarshalJSON ¶
func (c *ContentType) UnmarshalJSON(b []byte) error
func (*ContentType) UnmarshalYAML ¶
func (c *ContentType) UnmarshalYAML(b *yaml.Node) error
type ContentTypes ¶
type ContentTypes []ContentType
func (ContentTypes) GormDBDataType ¶
func (ContentTypes) GormDataType ¶
func (ContentTypes) GormDataType() string
func (ContentTypes) MarshalJSON ¶
func (c ContentTypes) MarshalJSON() ([]byte, error)
func (ContentTypes) MarshalYAML ¶
func (c ContentTypes) MarshalYAML() (any, error)
func (*ContentTypes) Scan ¶
func (c *ContentTypes) Scan(value interface{}) (err error)
func (*ContentTypes) UnmarshalJSON ¶
func (c *ContentTypes) UnmarshalJSON(b []byte) error
func (*ContentTypes) UnmarshalYAML ¶
func (c *ContentTypes) UnmarshalYAML(b *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.