models

package
v0.0.0-...-5e6e8bf Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(fileName string) (int64, error)

func FetchFileCount

func FetchFileCount(search string) (int, error)

Types

type File

type File struct {
	Id        int    `json:"id"`
	Title     string `json:"title"`
	CreatedAt string `json:"createdat"`
	UpdatedAt string `json:"updatedat"`
}

func FetchFile

func FetchFile(fileId int) (*File, error)

func FetchFileMany

func FetchFileMany(search, sort string, page, limit int) ([]*File, error)

Jump to

Keyboard shortcuts

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