models

package
v0.0.0-...-e9746f5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buckets

type Buckets struct {
	Id          int    `gorm:"column:id,primary_key,auto_increment"  json:"id"`
	Name        string `gorm:"column:name" json:"name"`
	Path        string `gorm:"column_name:path" json:"path"`
	Description string `gorm:"column_name:description" json:"description"`
}

func (*Buckets) Table

func (b *Buckets) Table() string

type Excludes

type Excludes struct {
	Id          int    `gorm:"column:id,primary_key"  json:"id"`
	Name        string `gorm:"column:name" json:"name"`
	Pattern     string `gorm:"pattern" json:"pattern"`
	Description string `gorm:"pattern" json:"description"`
}

func (*Excludes) Table

func (e *Excludes) Table() string

type Files

type Files struct {
	Id            *int64   `gorm:"primary_key,auto_increment,column:id"  json:"id"`
	Path          string   `gorm:"index:idx_path,unique,column:path" json:"path"`
	LastModified  int64    `gorm:"column:last_modified" json:"last_modified"`
	Hash          string   `gorm:"unique,column:hash" json:"hash"`
	Size          int64    `gorm:"column:size" json:"size"`
	Checksums     []uint32 `gorm:"-" json:"column:checksums"`
	ChecksumsText string   `gorm:"column:checksums"`
}

func (*Files) Table

func (f *Files) Table() string

Jump to

Keyboard shortcuts

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