Documentation ¶
Index ¶
- type Api
- func (a *Api) AddDefaultGuiEndpoint(ctx context.Context, id string) (string, error)
- func (a *Api) AddEndpoint(ctx context.Context, endpoint lib_model.EndpointBase) (string, error)
- func (a *Api) AddEndpointAlias(ctx context.Context, id, path string) (string, error)
- func (a *Api) AddEndpoints(ctx context.Context, endpoints []lib_model.EndpointBase) (string, error)
- func (a *Api) CancelJob(ctx context.Context, id string) error
- func (a *Api) GetCoreService(ctx context.Context, name string) (model.CoreService, error)
- func (a *Api) GetCoreServices(ctx context.Context) (map[string]model.CoreService, error)
- func (a *Api) GetEndpoint(ctx context.Context, id string) (lib_model.Endpoint, error)
- func (a *Api) GetEndpoints(ctx context.Context, filter lib_model.EndpointFilter) (map[string]lib_model.Endpoint, error)
- func (a *Api) GetJob(ctx context.Context, id string) (job_hdl_lib.Job, error)
- func (a *Api) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)
- func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
- func (a *Api) RemoveEndpoint(ctx context.Context, id string, restrictStd bool) (string, error)
- func (a *Api) RemoveEndpoints(ctx context.Context, filter lib_model.EndpointFilter, restrictStd bool) (string, error)
- func (a *Api) RestartCoreService(ctx context.Context, name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func New ¶
func New(coreServiceHandler handler.CoreServiceHandler, gwEndpointHdl handler.GatewayEndpointHandler, jobHandler job_hdl.JobHandler, srvInfoHandler srv_info_hdl.SrvInfoHandler) *Api
func (*Api) AddDefaultGuiEndpoint ¶ added in v0.0.2
func (*Api) AddEndpoint ¶ added in v0.0.2
func (*Api) AddEndpointAlias ¶ added in v0.0.2
func (*Api) AddEndpoints ¶
func (*Api) GetCoreService ¶ added in v0.1.0
func (*Api) GetCoreServices ¶ added in v0.1.0
func (*Api) GetEndpoint ¶ added in v0.0.2
func (*Api) GetEndpoints ¶ added in v0.0.2
func (*Api) GetJobs ¶
func (a *Api) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)
func (*Api) GetSrvInfo ¶ added in v0.5.0
func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo
func (*Api) RemoveEndpoint ¶
func (*Api) RemoveEndpoints ¶
Click to show internal directories.
Click to hide internal directories.