Documentation ¶
Index ¶
Constants ¶
View Source
const ( AdminRouteScope = "route.admin" AdvertiseRouteScope = "route.advertise" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventStreamHandler ¶
type EventStreamHandler struct {
// contains filtered or unexported fields
}
func NewEventStreamHandler ¶
func NewEventStreamHandler(token authentication.Token, database db.DB, logger lager.Logger) *EventStreamHandler
func (*EventStreamHandler) EventStream ¶
func (h *EventStreamHandler) EventStream(w http.ResponseWriter, req *http.Request)
type RouteValidator ¶
type RoutesHandler ¶
type RoutesHandler struct {
// contains filtered or unexported fields
}
func NewRoutesHandler ¶
func NewRoutesHandler(token authentication.Token, maxTTL int, validator RouteValidator, database db.DB, logger lager.Logger) *RoutesHandler
func (*RoutesHandler) Delete ¶
func (h *RoutesHandler) Delete(w http.ResponseWriter, req *http.Request)
func (*RoutesHandler) List ¶
func (h *RoutesHandler) List(w http.ResponseWriter, req *http.Request)
func (*RoutesHandler) Upsert ¶
func (h *RoutesHandler) Upsert(w http.ResponseWriter, req *http.Request)
type Validator ¶
type Validator struct{}
func NewValidator ¶
func NewValidator() Validator
func (Validator) ValidateCreate ¶
func (Validator) ValidateDelete ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.