models

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package

Index

Constants

View Source
const StorageFileDb = "storage_file_db"

StorageFileDb

Variables

View Source
var BlockDB = "block_db"

BlockDB

Functions

This section is empty.

Types

type Block

type Block struct {
	ID          string
	Md5         string
	CreatedTime time.Time
	Size        int64
	Path        string
	Content     []byte
}

k: md5

func (Block) GetDB

func (d Block) GetDB() string

func (Block) GetID

func (d Block) GetID() string

type File

type File struct {
	ID string
	FileMeta
	Name        string
	Status      bool
	Path        string
	BlockMd5    []string
	BlockStatus []bool
	CreatedTime int64
}

File

func (File) GetDB

func (d File) GetDB() string

func (File) GetID

func (d File) GetID() string

func (File) GetMd5

func (d File) GetMd5() string

func (File) GetName

func (d File) GetName() string

func (File) GetPath

func (d File) GetPath() string

func (File) GetStatus

func (d File) GetStatus() bool

type FileMeta

type FileMeta struct {
	Size    int64  `json:"size"`
	ModTime int64  `json:"modtime"`
	Md5     string `json:"md5"`
}

type System

type System struct {
	BeginTime time.Time
}

System

var SystemInfo System

SystemInfo

Jump to

Keyboard shortcuts

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