model

package
v0.0.0-...-4657e01 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID      int32 `sql:"primary_key"`
	Name    string
	Content *[]byte
	Type    *DocumentType
}

type DocumentType

type DocumentType string
const (
	DocumentType_Pdf   DocumentType = "pdf"
	DocumentType_Docx  DocumentType = "docx"
	DocumentType_Jpg   DocumentType = "jpg"
	DocumentType_Png   DocumentType = "png"
	DocumentType_Pages DocumentType = "pages"
	DocumentType_Odt   DocumentType = "odt"
	DocumentType_Txt   DocumentType = "txt"
	DocumentType_HTML  DocumentType = "html"
	DocumentType_Gif   DocumentType = "gif"
	DocumentType_Mpeg  DocumentType = "mpeg"
	DocumentType_Mp3   DocumentType = "mp3"
	DocumentType_Aac   DocumentType = "aac"
	DocumentType_Ai    DocumentType = "ai"
)

func (*DocumentType) Scan

func (e *DocumentType) Scan(value interface{}) error

func (DocumentType) String

func (e DocumentType) String() string

type Node

type Node struct {
	ID         int32 `sql:"primary_key"`
	DocumentID *int32
	Name       string
	Children   bool
	ParentID   int32
}

type Posts

type Posts struct {
	ID      int32 `sql:"primary_key"`
	OwnerID int32
	Text    *string
}

type Users

type Users struct {
	ID           int32 `sql:"primary_key"`
	Name         string
	Username     string
	PasswordHash string
}

Jump to

Keyboard shortcuts

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