Documentation ¶
Index ¶
- func GetAllChecks(r *http.Request) (error, []byte)
- func GetAllSamples(r *http.Request) (error, []byte)
- func GetAllServices(r *http.Request) (error, []byte)
- func GetCheck(r *http.Request) (error, []byte)
- func GetCluster(r *http.Request) (error, []byte)
- func GetClusterNodes(r *http.Request) (error, []byte)
- func GetClusterServices(r *http.Request) (error, []byte)
- func GetNodeInfo(r *http.Request) (error, []byte)
- func GetNodeStatus(r *http.Request) (error, []byte)
- func GetSample(r *http.Request) (error, []byte)
- func GetService(r *http.Request) (error, []byte)
- func Index(w http.ResponseWriter, r *http.Request)
- func PutCluster(w http.ResponseWriter, r *http.Request)
- func StartCheckEngine(r *http.Request) (error, []byte)
- type ApiEngine
- func (a *ApiEngine) AddRoute(route *ui.Route)
- func (a *ApiEngine) GenerateAPIRoutes()
- func (a *ApiEngine) GenerateAPIRoutesForCheck()
- func (a *ApiEngine) GenerateAPIRoutesForCluster()
- func (a *ApiEngine) GenerateAPIRoutesForNode()
- func (a *ApiEngine) GenerateAPIRoutesForSamples()
- func (a *ApiEngine) GenerateAPIRoutesForService()
- func (a *ApiEngine) GetCheckEngine() *check.CheckEngine
- func (a *ApiEngine) GetRoutes() []*ui.Route
- func (a *ApiEngine) GetSampleEngine() *sample.SampleEngine
- func (a *ApiEngine) GetServiceEngine() *service.ServiceEngine
- func (sys *ApiEngine) SayHi()
- func (a *ApiEngine) SetRoutes(routes []*ui.Route)
- type ObjectsBox
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllChecks ¶
GetAllChecks: write all checks' data to response writer ¶
func GetAllSamples ¶
GetAllSamples: write all samples' data to response writer ¶
func GetAllServices ¶
GetAllServices: write all services' data to response writer ¶
func GetCluster ¶
GetCluster: write whole cluster's information to response writer ¶
func GetClusterNodes ¶
GetClusterNodes: write all checks' data to response writer ¶
func GetClusterServices ¶
GetClusterServices: write all checks' data to response writer ¶
func GetNodeInfo ¶
GetNodeStatus: write the specific service's data to response writer ¶
func GetNodeStatus ¶
GetNodeStatus: write the specific service's data to response writer ¶
func GetService ¶
GetService: write the specific service's data to response writer ¶
func Index ¶
func Index(w http.ResponseWriter, r *http.Request)
Index: is the handler that manages the root api request ¶
func PutCluster ¶
func PutCluster(w http.ResponseWriter, r *http.Request)
PutClusterStatus: write all checks' data to response writer ¶
Types ¶
type ApiEngine ¶
func NewApiEngine ¶
func NewApiEngine(e *environment.Environment) *ApiEngine
# # # ApiEngine struct: # ApiEngine defines all informataion required for API
func (*ApiEngine) GenerateAPIRoutes ¶
func (a *ApiEngine) GenerateAPIRoutes()
GenerateAPIRoutes: generate a set of routes to serve ¶
func (*ApiEngine) GenerateAPIRoutesForCheck ¶
func (a *ApiEngine) GenerateAPIRoutesForCheck()
GenerateAPIRoutesForCheck: generate a set of routes to serve ¶
func (*ApiEngine) GenerateAPIRoutesForCluster ¶
func (a *ApiEngine) GenerateAPIRoutesForCluster()
GenerateAPIRoutesForCheck: generate a set of routes to serve ¶
func (*ApiEngine) GenerateAPIRoutesForNode ¶
func (a *ApiEngine) GenerateAPIRoutesForNode()
GenerateAPIRoutesForNode: generate a set of routes to serve ¶
func (*ApiEngine) GenerateAPIRoutesForSamples ¶
func (a *ApiEngine) GenerateAPIRoutesForSamples()
GenerateAPIRoutesForSamples: generate a set of routes to serve ¶
func (*ApiEngine) GenerateAPIRoutesForService ¶
func (a *ApiEngine) GenerateAPIRoutesForService()
GenerateAPIRoutesForService: generate a set of routes to serve ¶
func (*ApiEngine) GetCheckEngine ¶
func (a *ApiEngine) GetCheckEngine() *check.CheckEngine
GetCheckEngine: return CHECKS from obect box ¶
func (*ApiEngine) GetSampleEngine ¶
func (a *ApiEngine) GetSampleEngine() *sample.SampleEngine
GetSampleEngine: return CHECKS from obect box ¶
func (*ApiEngine) GetServiceEngine ¶
func (a *ApiEngine) GetServiceEngine() *service.ServiceEngine
GetServiceEngine: return CHECKS from obect box ¶
type ObjectsBox ¶
type ObjectsBox struct {
// contains filtered or unexported fields
}
func NewObjectsBox ¶
func NewObjectsBox() *ObjectsBox
func (*ObjectsBox) AddObject ¶
func (o *ObjectsBox) AddObject(key string, obj interface{})
func (*ObjectsBox) GetObject ¶
func (o *ObjectsBox) GetObject(key string) interface{}
Click to show internal directories.
Click to hide internal directories.