internal

package
v0.0.0-...-a0d1ad3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FsTableName = "fs"
)

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type FS

type FS interface {
	Create() error
	Delete() error
	Get() (*Fs, error)
}

type Fs

type Fs struct {
	gorm.Model

	AccountId uint   `gorm:"index;type:bigint;account_id"`
	FileName  string `gorm:"type:text;file_name"`
	Address   string `gorm:"type:text;address"`
}

func NewFs

func NewFs(accountId uint, fn string) *Fs

func NewFsCreate

func NewFsCreate(accountId uint, fn, address string) *Fs

func (*Fs) Create

func (f *Fs) Create() error

func (*Fs) Delete

func (f *Fs) Delete() error

func (*Fs) Get

func (f *Fs) Get() (*Fs, error)

Jump to

Keyboard shortcuts

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