server

package
v27.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v1.4.0

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

Server contains instance details for the server

func (*Server) CreateMux added in v1.9.0

func (s *Server) CreateMux(routers ...router.Router) *mux.Router

CreateMux returns a new mux with all the routers registered.

func (*Server) UseMiddleware added in v1.12.0

func (s *Server) UseMiddleware(m middleware.Middleware)

UseMiddleware appends a new middleware to the request chain. This needs to be called before the API routes are configured.

Jump to

Keyboard shortcuts

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