entity

package
v0.0.0-...-71b1d82 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FileId    string     `json:"fileId,omitempty" bson:"file_id"`
	Filename  string     `json:"filename,omitempty"`
	Size      int64      `json:"size,omitempty"`
	Secret    bool       `json:"secret" bson:"is_secret"`
	Owner     string     `json:"owner,omitempty"`
	Editors   []string   `json:"editors"`
	Viewers   []string   `json:"viewers"`
	CreatedAt time.Time  `json:"createdAt,omitempty" bson:"created_at"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty" bson:"updated_at"`
	CreatedBy string     `json:"createdBy,omitempty" bson:"created_by"`
	UpdatedBy *string    `json:"updatedBy,omitempty" bson:"updated_by"`
}

func NewFile

func NewFile(filename string, size int64, secret bool, ownerId string) *File

type FilePage

type FilePage struct {
	Content []*File
	Count   int
}

Jump to

Keyboard shortcuts

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