Documentation
¶
Index ¶
- type Server
- func (s Server) CreateProbe(ctx context.Context, request v1.CreateProbeRequestObject) (v1.CreateProbeResponseObject, error)
- func (s Server) DeleteProbe(ctx context.Context, request v1.DeleteProbeRequestObject) (v1.DeleteProbeResponseObject, error)
- func (s Server) GetProbeById(ctx context.Context, request v1.GetProbeByIdRequestObject) (v1.GetProbeByIdResponseObject, error)
- func (s Server) ListProbes(ctx context.Context, request v1.ListProbesRequestObject) (v1.ListProbesResponseObject, error)
- func (s Server) MonitorProbes(ctx context.Context)
- func (s Server) UpdateProbe(ctx context.Context, request v1.UpdateProbeRequestObject) (v1.UpdateProbeResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Store probestore.ProbeStorage
}
Server is the main API server object.
func NewServer ¶
func NewServer(store probestore.ProbeStorage) Server
NewServer creates a new API server.
func (Server) CreateProbe ¶
func (s Server) CreateProbe(ctx context.Context, request v1.CreateProbeRequestObject) (v1.CreateProbeResponseObject, error)
(POST /probes)
func (Server) DeleteProbe ¶
func (s Server) DeleteProbe(ctx context.Context, request v1.DeleteProbeRequestObject) (v1.DeleteProbeResponseObject, error)
(DELETE /probes/{probe_id})
func (Server) GetProbeById ¶
func (s Server) GetProbeById(ctx context.Context, request v1.GetProbeByIdRequestObject) (v1.GetProbeByIdResponseObject, error)
(GET /probes/{probe_id})
func (Server) ListProbes ¶
func (s Server) ListProbes(ctx context.Context, request v1.ListProbesRequestObject) (v1.ListProbesResponseObject, error)
(GET /probes)
func (Server) MonitorProbes ¶
func (Server) UpdateProbe ¶
func (s Server) UpdateProbe(ctx context.Context, request v1.UpdateProbeRequestObject) (v1.UpdateProbeResponseObject, error)
(PATCH /probes/{probe_id})
Click to show internal directories.
Click to hide internal directories.