Documentation
¶
Overview ¶
Package api pkg/deployment/monitor/api/api.go c2-net-monitor
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API register all the API endpoints. It implements a net/http.Handler.
func New ¶
func New(s store.Store, logger *logging.Logger, urls ServicesURLs, config NetworkMonitorConfig) *API
New returns a new *chi.Mux object, which can be started as a server
func (*API) InitCleaningLoop ¶
InitCleaningLoop is function which runs periodic background tasks of API.
type Error ¶
type Error struct {
Error string `json:"error"`
}
Error is the object returned to the client when there's an error.
type HealthCheckResponse ¶
type HealthCheckResponse struct {
ServiceName string `json:"service_name,omitempty"`
BuildInfo *buildinfo.Info `json:"build_info,omitempty"`
StartedAt time.Time `json:"started_at,omitempty"`
}
HealthCheckResponse is struct of /health endpoint
Click to show internal directories.
Click to hide internal directories.