www

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBookmarkServices

func WithBookmarkServices(
	bookmarkService *bookmark.Service,
	exportingService *bookmarkexporting.Service,
	importingService *bookmarkimporting.Service,
	queryingService *bookmarkquerying.Service,
) optionFunc

func WithCSRFKey

func WithCSRFKey(csrfKey string) optionFunc

func WithFeedServices

func WithFeedServices(
	feedService *feed.Service,
	feedExportingService *feedexporting.Service,
	feedImportingService *feedimporting.Service,
	feedQueryingService *feedquerying.Service,
) optionFunc

func WithMetricsRegistry

func WithMetricsRegistry(prefix string, registry *prometheus.Registry) optionFunc

func WithPublicURL

func WithPublicURL(publicURL *url.URL) optionFunc

func WithSessionService

func WithSessionService(sessionService *session.Service) optionFunc

func WithUserService

func WithUserService(userService *user.Service) optionFunc

Types

type Server

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

Server represents the Web service.

func NewServer

func NewServer(optionFuncs ...optionFunc) *Server

NewServer initializes and returns a new Server.

func (*Server) ServeHTTP

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

ServeHTTP satisfies the http.Handler interface,

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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