www

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBookmarkService

func WithBookmarkService(bookmarkService *bookmark.Service) optionFunc

func WithCSRFKey

func WithCSRFKey(csrfKey string) optionFunc

func WithExportingService

func WithExportingService(exportingService *exporting.Service) optionFunc

func WithImportingService

func WithImportingService(importingService *importing.Service) optionFunc

func WithMetricsRegistry

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

func WithPublicURL

func WithPublicURL(publicURL *url.URL) optionFunc

func WithQueryingService

func WithQueryingService(queryingService *querying.Service) 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