api

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocQuery

type DocQuery struct {
	EntryIds       []int64    `json:"entryIds,omitempty"`
	Namespace      string     `json:"namespace"`
	Source         string     `json:"source,omitempty"`
	WebUrl         string     `json:"webUrl,omitempty"`
	ParentID       *int64     `json:"parentId,omitempty"`
	UnRead         *bool      `json:"unRead,omitempty"`
	Mark           *bool      `json:"mark,omitempty"`
	CreatedAtStart *time.Time `json:"createdAtStart,omitempty"`
	CreatedAtEnd   *time.Time `json:"createdAtEnd,omitempty"`
	ChangedAtStart *time.Time `json:"changedAtStart,omitempty"`
	ChangedAtEnd   *time.Time `json:"changedAtEnd,omitempty"`
	FuzzyName      string     `json:"fuzzyName,omitempty"`

	Search string `json:"search"`

	PageSize int64 `json:"PageSize,omitempty"`
	Page     int64 `json:"page,omitempty"`
	Sort     int   `json:"sort,omitempty"`
	Desc     bool  `json:"desc,omitempty"`
}

func (*DocQuery) ToModel

func (q *DocQuery) ToModel() *doc.DocumentFilter

type DocRequest

type DocRequest struct {
	doc.Document
}

func (*DocRequest) Valid

func (r *DocRequest) Valid() error

type DocUpdateRequest

type DocUpdateRequest struct {
	Namespace string `json:"namespace"`
	EntryId   int64  `json:"entryId,omitempty"`
	ParentID  *int64 `json:"parentId,omitempty"`
	UnRead    *bool  `json:"unRead,omitempty"`
	Mark      *bool  `json:"mark,omitempty"`
}

func (*DocUpdateRequest) ToModel

func (r *DocUpdateRequest) ToModel() *doc.Document

func (*DocUpdateRequest) Valid

func (r *DocUpdateRequest) Valid() error

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(conf config.Config) (*HttpServer, error)

func (*HttpServer) Run

func (s *HttpServer) Run(stopCh chan struct{})

Jump to

Keyboard shortcuts

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