Documentation ¶
Index ¶
- func JSONResponse(w http.ResponseWriter, data interface{}, code int) (int, error)
- func NewBindingsHandler(amqpServer *server.Server) http.Handler
- func NewChannelsHandler(amqpServer *server.Server) http.Handler
- func NewConnectionsHandler(amqpServer *server.Server) http.Handler
- func NewExchangesHandler(amqpServer *server.Server) http.Handler
- func NewOverviewHandler(amqpServer *server.Server) http.Handler
- func NewQueuesHandler(amqpServer *server.Server) http.Handler
- type AdminServer
- type Binding
- type BindingsHandler
- type BindingsResponse
- type Channel
- type ChannelsHandler
- type ChannelsResponse
- type Connection
- type ConnectionsHandler
- type ConnectionsResponse
- type Exchange
- type ExchangesHandler
- type ExchangesResponse
- type Metric
- type OverviewHandler
- type OverviewResponse
- type Queue
- type QueuesHandler
- type QueuesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONResponse ¶
func JSONResponse(w http.ResponseWriter, data interface{}, code int) (int, error)
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func NewAdminServer ¶
func NewAdminServer(amqpServer *server.Server, host string, port string) *AdminServer
func (*AdminServer) Start ¶
func (server *AdminServer) Start() error
type BindingsHandler ¶
type BindingsHandler struct {
// contains filtered or unexported fields
}
func (*BindingsHandler) ServeHTTP ¶
func (h *BindingsHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type BindingsResponse ¶
type BindingsResponse struct {
Items []*Binding `json:"items"`
}
type ChannelsHandler ¶
type ChannelsHandler struct {
// contains filtered or unexported fields
}
func (*ChannelsHandler) ServeHTTP ¶
func (h *ChannelsHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type ChannelsResponse ¶
type ChannelsResponse struct {
Items []*Channel `json:"items"`
}
type Connection ¶
type ConnectionsHandler ¶
type ConnectionsHandler struct {
// contains filtered or unexported fields
}
func (*ConnectionsHandler) ServeHTTP ¶
func (h *ConnectionsHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type ConnectionsResponse ¶
type ConnectionsResponse struct {
Items []*Connection `json:"items"`
}
type Exchange ¶
type Exchange struct { Name string `json:"name"` Vhost string `json:"vhost"` Type string `json:"type"` Durable bool `json:"durable"` Internal bool `json:"internal"` AutoDelete bool `json:"auto_delete"` MsgRateIn *metrics.TrackItem `json:"msg_rate_in"` MsgRateOut *metrics.TrackItem `json:"msg_rate_out"` }
type ExchangesHandler ¶
type ExchangesHandler struct {
// contains filtered or unexported fields
}
func (*ExchangesHandler) ServeHTTP ¶
func (h *ExchangesHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type ExchangesResponse ¶
type ExchangesResponse struct {
Items []*Exchange `json:"items"`
}
type OverviewHandler ¶
type OverviewHandler struct {
// contains filtered or unexported fields
}
func (*OverviewHandler) ServeHTTP ¶
func (h *OverviewHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type OverviewResponse ¶
type QueuesHandler ¶
type QueuesHandler struct {
// contains filtered or unexported fields
}
func (*QueuesHandler) ServeHTTP ¶
func (h *QueuesHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
type QueuesResponse ¶
type QueuesResponse struct {
Items []*Queue `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.