server

package
v0.0.0-...-a886d3f Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedCreateForm

type FeedCreateForm struct {
	Url      string `json:"url"`
	FolderID *int64 `json:"folder_id,omitempty"`
}

type FolderCreateForm

type FolderCreateForm struct {
	Title string `json:"title"`
}

type FolderUpdateForm

type FolderUpdateForm struct {
	Title      *string `json:"title,omitempty"`
	IsExpanded *bool   `json:"is_expanded,omitempty"`
}

type ItemUpdateForm

type ItemUpdateForm struct {
	Status *storage.ItemStatus `json:"status,omitempty"`
}

type Server

type Server struct {
	Addr string

	BasePath string

	// auth
	Username string
	Password string
	// https
	CertFile string
	KeyFile  string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(db *storage.Storage, addr string) *Server

func (*Server) GetAddr

func (h *Server) GetAddr() string

func (*Server) Start

func (s *Server) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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