router

package
v0.0.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRouter

type AuthenticationRouter struct {
	WebServiceRouter
	// contains filtered or unexported fields
}

func (*AuthenticationRouter) RegisterRoutes

func (authenticationRouter *AuthenticationRouter) RegisterRoutes(router *mux.Router, baseURI string) []string

Registers all of the authentication endpoints at the root of the webservice (/api/v1)

type SystemRouter

type SystemRouter struct {
	WebServiceRouter
	// contains filtered or unexported fields
}

func (*SystemRouter) RegisterRoutes

func (systemRouter *SystemRouter) RegisterRoutes(router *mux.Router, baseURI string) []string

Registers all of the system endpoints at the root of the webservice (/api/v1)

type WebServiceRouter

type WebServiceRouter interface {
	RegisterRoutes(router *mux.Router, baseURI string) []string
}

func NewAuthenticationRouter

func NewAuthenticationRouter(
	middleware middleware.JsonWebTokenMiddleware) WebServiceRouter

Creates a new web service authentication router

func NewSystemRouter

func NewSystemRouter(
	logger *logging.Logger,
	ca ca.CertificateAuthority,
	serverKeyAttributes *keystore.KeyAttributes,
	middleware middleware.JsonWebTokenMiddleware,
	router *mux.Router,
	jsonWriter response.HttpWriter,
	endpointList *[]string) WebServiceRouter

Creates a new web service system router

Jump to

Keyboard shortcuts

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