Documentation
¶
Overview ¶
Package webserver provides the HTTP server for tens-city
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSStorage ¶
type FSStorage struct {
// contains filtered or unexported fields
}
FSStorage implements Storage using filesystem
func NewFSStorage ¶
NewFSStorage creates a new filesystem-backed storage
func (*FSStorage) GetHistory ¶
func (fs *FSStorage) GetHistory(user, slug string) ([]store.HistoryEntry, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the main HTTP server for tens-city
func NewServer ¶
func NewServer(storage Storage, publicFS fs.FS, docServer *docserver.DocServer, fallbackURL string, googleAnalyticsID string, actor *activitypub.Actor, contentDir string) *Server
NewServer creates a new Server instance
func (*Server) GetBlogPosts ¶
func (s *Server) GetBlogPosts() []activitypub.BlogPost
GetBlogPosts loads blog posts and converts them to ActivityPub format
Click to show internal directories.
Click to hide internal directories.