router

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Router  *mux.Router
	Driver  driver
	APIKeys map[string]bool
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(driver driver, apiKeys map[string]bool, logger *logrus.Logger) (*Router, error)

NewRouter returns router instance

func (*Router) AuthorizationHandler

func (rt *Router) AuthorizationHandler(h http.Handler) http.Handler

func (*Router) CreateRegion

func (rt *Router) CreateRegion(w http.ResponseWriter, r *http.Request)

func (*Router) CreateRelay

func (rt *Router) CreateRelay(w http.ResponseWriter, r *http.Request)

func (*Router) CreateSession

func (rt *Router) CreateSession(w http.ResponseWriter, r *http.Request)

func (*Router) GetRelay

func (rt *Router) GetRelay(w http.ResponseWriter, r *http.Request)

func (*Router) HealthCheck

func (rt *Router) HealthCheck(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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