models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 3 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 {
	ID        string    `json:"id,omitempty"`
	RefID     string    `json:"refId,omitempty"`
	Name      string    `json:"name,omitempty"`
	Extension string    `json:"extension,omitempty"`
	Size      int64     `json:"size,omitempty"`
	Status    string    `json:"status,omitempty"`
	CreatedOn time.Time `json:"-"`
}

File struct

func (*File) PrepareFileOutput

func (f *File) PrepareFileOutput(file File)

PrepareFileOutput initiliazes the file request object

func (*File) ValidateFile

func (f *File) ValidateFile(action string) error

ValidateFile check if request is valid

Jump to

Keyboard shortcuts

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