feat: logging
This commit is contained in:
parent
778d5ef146
commit
fe5e40162b
10 changed files with 151 additions and 75 deletions
|
|
@ -12,37 +12,37 @@ type Handler interface {
|
|||
//
|
||||
// Get available satellites.
|
||||
//
|
||||
// GET /satellite
|
||||
// GET /api/v1/satellite
|
||||
GetSatellites(ctx context.Context) (*GetSatellitesOK, error)
|
||||
// GetStations implements GetStations operation.
|
||||
//
|
||||
// Get available stations.
|
||||
//
|
||||
// GET /station
|
||||
// GET /api/v1/station
|
||||
GetStations(ctx context.Context) (*GetStationsOK, error)
|
||||
// GetSubscriptions implements GetSubscriptions operation.
|
||||
//
|
||||
// Get current subscriptions.
|
||||
//
|
||||
// GET /subscription
|
||||
// GET /api/v1/subscription
|
||||
GetSubscriptions(ctx context.Context) (*GetSubscriptionsOK, error)
|
||||
// SubscribeSatellite implements SubscribeSatellite operation.
|
||||
//
|
||||
// Subscribe to a given station.
|
||||
//
|
||||
// POST /satellite/subscribe
|
||||
// POST /api/v1/satellite/subscribe
|
||||
SubscribeSatellite(ctx context.Context, req *SubscribeSatelliteReq) (*SubscribeSatelliteOK, error)
|
||||
// SubscribeStation implements SubscribeStation operation.
|
||||
//
|
||||
// Subscribe to a given station.
|
||||
//
|
||||
// POST /station/subscribe
|
||||
// POST /api/v1/station/subscribe
|
||||
SubscribeStation(ctx context.Context, req *SubscribeStationReq) (*SubscribeStationOK, error)
|
||||
// Unsubscribe implements Unsubscribe operation.
|
||||
//
|
||||
// Remove subscription by subscription ID.
|
||||
//
|
||||
// DELETE /subscription
|
||||
// DELETE /api/v1/subscription
|
||||
Unsubscribe(ctx context.Context, params UnsubscribeParams) error
|
||||
// NewError creates *ErrorStatusCode from error returned by handler.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue