content_type

package
v0.0.0-...-ca1da83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Len

func Len() int

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) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (ContentTypes) GormDataType

func (ContentTypes) GormDataType() string

func (ContentTypes) GormValue

func (js ContentTypes) GormValue(ctx context.Context, db *gorm.DB) (expr clause.Expr)

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

func (ContentTypes) Value

func (c ContentTypes) Value() (value driver.Value, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL