admin

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	LockRouterGroupReadsRoute    = "LockRouterGroupReads"
	UnlockRouterGroupReadsRoute  = "UnlockRouterGroupReads"
	LockRouterGroupWritesRoute   = "LockRouterGroupWrites"
	UnlockRouterGroupWritesRoute = "UnlockRouterGroupWrites"
)

Variables

View Source
var AdminRoutesMap = map[string]rata.Route{
	LockRouterGroupReadsRoute:    {Path: "/lock_router_group_reads", Method: "PUT", Name: LockRouterGroupReadsRoute},
	UnlockRouterGroupReadsRoute:  {Path: "/unlock_router_group_reads", Method: "PUT", Name: UnlockRouterGroupReadsRoute},
	LockRouterGroupWritesRoute:   {Path: "/lock_router_group_writes", Method: "PUT", Name: LockRouterGroupWritesRoute},
	UnlockRouterGroupWritesRoute: {Path: "/unlock_router_group_writes", Method: "PUT", Name: UnlockRouterGroupWritesRoute},
}

Functions

func AdminRoutes

func AdminRoutes() rata.Routes

func NewServer

func NewServer(port uint16, db db.DB, logger lager.Logger) (ifrit.Runner, error)

Types

type RouterGroupLockHandler

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

func NewRouterGroupLockHandler

func NewRouterGroupLockHandler(database db.DB, logger lager.Logger) *RouterGroupLockHandler

func (*RouterGroupLockHandler) LockReads

func (h *RouterGroupLockHandler) LockReads(w http.ResponseWriter, req *http.Request)

func (*RouterGroupLockHandler) LockWrites

func (h *RouterGroupLockHandler) LockWrites(w http.ResponseWriter, req *http.Request)

func (*RouterGroupLockHandler) UnlockReads

func (h *RouterGroupLockHandler) UnlockReads(w http.ResponseWriter, req *http.Request)

func (*RouterGroupLockHandler) UnlockWrites

func (h *RouterGroupLockHandler) UnlockWrites(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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