Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OK = map[string]bool{ "ok": true, }
OK is just an OK constant to return when all good :)
Functions ¶
This section is empty.
Types ¶
type DBFile ¶
type DBFile struct {
ID uuid.UUID `pg:"id,notnull,pk"`
Filename string `pg:"filename,notnull"`
ContentType string `pg:"-" gorm:"-"`
CreatedAt time.Time `pg:"created_at,notnull"`
// contains filtered or unexported fields
}
DBFile is a file in Postgres
type DBUser ¶
type DBUser struct {
ID uuid.UUID `pg:"id,notnull,pk"`
Firstname string `pg:"firstname,notnull"`
Lastname string `pg:"lastname,notnull"`
CreatedAt time.Time `pg:"created_at,notnull"`
// contains filtered or unexported fields
}
DBUser is a Postgres user
type File ¶
type File struct {
ID uuid.UUID `json:"id"`
Filename string `json:"filename" validate:"required"`
CreatedAt time.Time `json:"created_at"`
}
File holds file metadata as a JSON
Click to show internal directories.
Click to hide internal directories.