rest

package
v0.0.0-...-a79ec99 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

Middleware acts as a bridge between the request and the controllers

func NewMiddleware

func NewMiddleware(l cslog.Logger, uuidGen fmt.Stringer) (*Middleware, error)

NewMiddleware returns a new Middleware

type Server

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

Server holds the variables for running a server

func NewServer

func NewServer(p *ServerParams) (*Server, error)

NewServer instantiates a new Server

func (*Server) Run

func (s *Server) Run() error

Run runs the server

type ServerParams

type ServerParams struct {
	Port   string
	Logger cslog.Logger
}

ServerParams structures the parameters for a new Server

Jump to

Keyboard shortcuts

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