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 ¶
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{})
Click to show internal directories.
Click to hide internal directories.