entity

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIMEContentDispositionKey = "Content-Disposition"
	MIMEContentTypeKey        = "Content-Type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audio

type Audio struct {
	ID          vo.ID  `json:"id,omitempty" bson:"_id,omitempty,inline"`
	Name        string `bson:"name"`
	Description string `bson:"description,omitempty"`
}

func (Audio) GetID added in v0.0.4

func (r Audio) GetID() vo.ID

type BlockedToken added in v0.0.4

type BlockedToken struct {
	ID        vo.ID     `json:"id,omitempty" bson:"_id,omitempty,inline"`
	Value     string    `bson:"value"`
	BlockedAt time.Time `bson:"blockedAt"`
}

func (BlockedToken) GetID added in v0.0.4

func (r BlockedToken) GetID() vo.ID

type Resource

type Resource struct {
	ID       vo.ID  `json:"id" bson:",inline"`
	Name     string `json:"name" bson:"name"`         // original filename
	Filename string `json:"filename" bson:"filename"` // uploaded filename
	Filepath string `json:"filepath" bson:"filepath"` // path to uploaded file
	Filetype string `json:"filetype" bson:"filetype"` // filetype
	Filesize int64  `json:"filesize" bson:"filesize"` // size of uploaded file
}

func (Resource) GetFilename added in v0.0.4

func (r Resource) GetFilename() string

func (Resource) GetFilepath added in v0.0.4

func (r Resource) GetFilepath() string

func (Resource) GetFilesize added in v0.0.4

func (r Resource) GetFilesize() int64

func (Resource) GetFiletype added in v0.0.4

func (r Resource) GetFiletype() string

func (Resource) GetID added in v0.0.4

func (r Resource) GetID() vo.ID

func (Resource) GetName added in v0.0.4

func (r Resource) GetName() string

type User added in v0.0.4

type User struct {
	ID       vo.ID     `json:"id" bson:",inline"`
	Username string    `json:"username" bson:"username"`
	Password string    `json:"password" bson:"password"`
	Email    string    `json:"email" bson:"email"` // unique key
	Birthday time.Time `json:"birthday" bson:"birthday,omitempty"`
}

func (User) GetID added in v0.0.4

func (r User) GetID() vo.ID

type Video

type Video struct {
	ID          vo.ID  `json:"id" bson:",inline"`
	Name        string `json:"name" bson:"name"`
	Description string `json:"description" bson:"description,omitempty"`
}

func (Video) GetID added in v0.0.4

func (r Video) GetID() vo.ID

Jump to

Keyboard shortcuts

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