Documentation ¶
Index ¶
- Constants
- Variables
- func AdminRoutes() rata.Routes
- func NewServer(port uint16, db db.DB, logger lager.Logger) (ifrit.Runner, error)
- type RouterGroupLockHandler
- func (h *RouterGroupLockHandler) LockReads(w http.ResponseWriter, req *http.Request)
- func (h *RouterGroupLockHandler) LockWrites(w http.ResponseWriter, req *http.Request)
- func (h *RouterGroupLockHandler) UnlockReads(w http.ResponseWriter, req *http.Request)
- func (h *RouterGroupLockHandler) UnlockWrites(w http.ResponseWriter, req *http.Request)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.