server

package
v0.0.0-...-66e7bdd Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentBuilder

type ContentBuilder func(configs.Content) (string, error)

type IndexBuilder

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

func (*IndexBuilder) Write

func (b *IndexBuilder) Write(writer io.Writer) error

type Server

type Server struct {
	StaticFS embed.FS
	Config   *configs.Config
	Store    store.Store
	// contains filtered or unexported fields
}

func (*Server) CheckAllFeeds

func (s *Server) CheckAllFeeds()

func (*Server) CheckFeed

func (s *Server) CheckFeed(feed *configs.FeedConfig) error

func (*Server) CheckFeedHandler

func (s *Server) CheckFeedHandler(w http.ResponseWriter, r *http.Request)

func (*Server) EventsHandler

func (s *Server) EventsHandler(w http.ResponseWriter, r *http.Request)

func (*Server) GenerateIndex

func (s *Server) GenerateIndex() error

func (*Server) IndexHandler

func (s *Server) IndexHandler(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) StaticFileHandler

func (s *Server) StaticFileHandler(w http.ResponseWriter, r *http.Request)

func (*Server) UpdateFeed

func (s *Server) UpdateFeed(feed *configs.FeedConfig) error

func (*Server) UpdateFeedHandler

func (s *Server) UpdateFeedHandler(w http.ResponseWriter, r *http.Request)

func (*Server) ValuesHandler

func (s *Server) ValuesHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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