server

package
v0.0.0-...-5254df5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 24 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 FeverFavicon

type FeverFavicon struct {
	ID   int64  `json:"id"`
	Data string `json:"data"`
}

type FeverFeed

type FeverFeed struct {
	ID          int64  `json:"id"`
	FaviconID   int64  `json:"favicon_id"`
	Title       string `json:"title"`
	Url         string `json:"url"`
	SiteUrl     string `json:"site_url"`
	IsSpark     int    `json:"is_spark"`
	LastUpdated int64  `json:"last_updated_on_time"`
}

type FeverFeedsGroup

type FeverFeedsGroup struct {
	GroupID int64  `json:"group_id"`
	FeedIDs string `json:"feed_ids"`
}

type FeverGroup

type FeverGroup struct {
	ID    int64  `json:"id"`
	Title string `json:"title"`
}

type FeverItem

type FeverItem struct {
	ID        int64  `json:"id"`
	FeedID    int64  `json:"feed_id"`
	Title     string `json:"title"`
	Author    string `json:"author"`
	HTML      string `json:"html"`
	Url       string `json:"url"`
	IsSaved   int    `json:"is_saved"`
	IsRead    int    `json:"is_read"`
	CreatedAt int64  `json:"created_on_time"`
}

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