server

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func New

func New(ctx context.Context, c config.Config) (*Server, error)

func (*Server) Routes

func (s *Server) Routes() http.Handler

Routes constructs the middleware stack and returns a HTTP server for our API.

Don't add API routes here manually. Instead, follow the documentation in the API package (on the API struct) on how to add endpoints.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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