Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Administrator ¶
type Administrator interface { ListenAndServe() error Stop() }
Administrator is the admin interface of uq
type UnitedAdmin ¶
type UnitedAdmin struct {
// contains filtered or unexported fields
}
UnitedAdmin is the HTTP admin server of uq
func NewUnitedAdmin ¶
func NewUnitedAdmin(host string, port int, messageQueue queue.MessageQueue) (*UnitedAdmin, error)
NewUnitedAdmin returns a UnitedAdmin
func (*UnitedAdmin) ListenAndServe ¶
func (s *UnitedAdmin) ListenAndServe() error
ListenAndServe implements the ListenAndServe interface
func (*UnitedAdmin) ServeHTTP ¶
func (s *UnitedAdmin) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.