entity

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Id        string          `json:"id"`
	Name      string          `json:"name"`
	CreatedAt *time.Time      `json:"createdAt"`
	UpdatedAt *time.Time      `json:"updatedAt"`
	Data      json.RawMessage `json:"data"`
}

func NewEntry

func NewEntry(name string, data interface{}, isIndent bool) *Entry

func (*Entry) FlushTime

func (i *Entry) FlushTime() *Entry

func (*Entry) SetName

func (i *Entry) SetName(name string) *Entry

func (*Entry) UpdateData

func (i *Entry) UpdateData(data interface{}, isIndent bool) error

func (*Entry) UpdatedNow

func (i *Entry) UpdatedNow() *Entry

type FolderInfo

type FolderInfo struct {
	Id        string                     `json:"id"`
	Name      fsentry_types.QuotedString `json:"name"`
	CreatedAt *time.Time                 `json:"createdAt"`
	UpdatedAt *time.Time                 `json:"updatedAt"`
	Data      json.RawMessage            `json:"data"`
}

func NewFolderInfo

func NewFolderInfo(name string, data interface{}, isIndent bool) *FolderInfo

func (*FolderInfo) FlushTime

func (i *FolderInfo) FlushTime() *FolderInfo

func (*FolderInfo) SetName

func (i *FolderInfo) SetName(name string) *FolderInfo

func (*FolderInfo) UpdateData

func (i *FolderInfo) UpdateData(data interface{}, isIndent bool) error

func (*FolderInfo) UpdatedNow

func (i *FolderInfo) UpdatedNow() *FolderInfo

type List

type List struct {
	Folders []string
	Entries []string
}

Jump to

Keyboard shortcuts

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