router

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(r *mux.Router, b *Backend)

Types

type Backend

type Backend struct {
	BypassDriver BypassDriver
}

func (*Backend) DeleteBypass

func (b *Backend) DeleteBypass(w http.ResponseWriter, r *http.Request)

func (*Backend) GetBypasses

func (b *Backend) GetBypasses(w http.ResponseWriter, r *http.Request)

func (*Backend) PostBypass

func (b *Backend) PostBypass(w http.ResponseWriter, r *http.Request)

type BypassDriver

type BypassDriver interface {
	ListBypass() []api.BypassStatus
	StartBypass(*api.BypassSpec) (*api.BypassStatus, error)
	StopBypass(id string) error
}

Jump to

Keyboard shortcuts

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