Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiTerminalRoute = "/api/v1/terminal" ApiServicesRoute = "/api/v1/services" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentClient ¶
type AgentClient interface { GetGps(ctx context.Context) (dtos.Gps, error) AddServiceMonitor(ctx context.Context, stats dtos.ServiceStats) error DeleteServiceMonitor(ctx context.Context, serviceName string) error GetAllDriverMonitor(ctx context.Context) ([]dtos.ServiceStats, error) RestartGateway(ctx context.Context) error OperationService(ctx context.Context, op dtos.Operation) error GetAllAppServiceMonitor(ctx context.Context) ([]dtos.ServiceStats, error) GetAllServices(ctx context.Context) (res dtos.ServicesStats, err error) Exec(ctx context.Context, req dtos.AgentRequest) (res dtos.AgentResponse, err error) ResetGateway(ctx context.Context) error }
func New ¶
func New(baseUrl string) AgentClient
Click to show internal directories.
Click to hide internal directories.