www

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc added in v0.5.0

type OptionFunc func(*Server)

OptionFunc represents a function that configures a set of options for a Server.

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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