doc

package
v0.0.0-...-04ebf03 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocOrder

type DocOrder int
const (
	Name DocOrder = iota
	Source
	Marked
	Unread
	CreatedAt
)

func (DocOrder) String

func (d DocOrder) String() string

type Document

type Document struct {
	EntryId       int64     `json:"entry_id"`
	Name          string    `json:"name"`
	Namespace     string    `json:"namespace"`
	ParentEntryID *int64    `json:"parent_entry_id"`
	Source        string    `json:"source"`
	Content       string    `json:"content,omitempty"`
	Summary       string    `json:"summary,omitempty"`
	WebUrl        string    `json:"web_url,omitempty"`
	HeaderImage   string    `json:"header_image,omitempty"`
	SubContent    string    `json:"sub_content,omitempty"`
	Marked        *bool     `json:"marked,omitempty"`
	Unread        *bool     `json:"unread,omitempty"`
	CreatedAt     time.Time `json:"created_at"`
	ChangedAt     time.Time `json:"changed_at"`
}

func (*Document) NewTest

func (d *Document) NewTest() *Document

type DocumentFilter

type DocumentFilter struct {
	Namespace      string
	Search         string
	FuzzyName      string
	ParentID       *int64
	Source         string
	Marked         *bool
	Unread         *bool
	CreatedAtStart *time.Time
	CreatedAtEnd   *time.Time
	ChangedAtStart *time.Time
	ChangedAtEnd   *time.Time

	// Pagination
	Page     int64
	PageSize int64
	Order    DocumentOrder
}

func (*DocumentFilter) String

func (f *DocumentFilter) String() string

type DocumentOrder

type DocumentOrder struct {
	Order DocOrder
	Desc  bool
}

func (DocumentOrder) String

func (o DocumentOrder) String() string

Jump to

Keyboard shortcuts

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