Documentation ¶
Index ¶
- func ToJSON(i interface{}, w io.Writer) error
- type HTTP
- type Response
- type Services
- func (s *Services) AddService(w http.ResponseWriter, r *http.Request)
- func (s *Services) GetService(w http.ResponseWriter, r *http.Request)
- func (s *Services) GetServices(w http.ResponseWriter, r *http.Request)
- func (s *Services) GetStatus(w http.ResponseWriter, r *http.Request)
- func (s *Services) Index(w http.ResponseWriter, r *http.Request)
- func (s *Services) RemoveService(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTP ¶
type HTTP struct { Host string ` json:"host"` Name string ` json:"name"` Stype string ` json:"stype"` AcceptedStatus map[int]bool ` json:"accepted_status"` Frequency float64 ` json:"frequency"` RequestMethod string ` json:"request_method"` RequestPayload string ` json:"request_payload"` RequestHeaders [][2]string ` json:"request_headers"` }
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
func NewServices ¶
func NewServices(c proto.ServiceClient) *Services
func (*Services) AddService ¶
func (s *Services) AddService(w http.ResponseWriter, r *http.Request)
func (*Services) GetService ¶
func (s *Services) GetService(w http.ResponseWriter, r *http.Request)
func (*Services) GetServices ¶
func (s *Services) GetServices(w http.ResponseWriter, r *http.Request)
func (*Services) RemoveService ¶
func (s *Services) RemoveService(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.