api

package
v0.1.10-hotfix1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManager

type APIManager struct {
	Client           *http.Client
	DestTransformURL string
}

func (*APIManager) Delete

func (api *APIManager) Delete(ctx context.Context, job model.Job, destConfig map[string]interface{}, destName string) model.JobStatus

prepares payload based on (job,destDetail) & make an API call to transformer. gets (status, failure_reason) which is converted to appropriate model.Error & returned to caller.

func (*APIManager) GetSupportedDestinations

func (bm *APIManager) GetSupportedDestinations() []string

type JobRespSchema

type JobRespSchema struct {
	Status string `json:"status"`
	Error  error  `json:"error"`
}

type Mock_apiWorker

type Mock_apiWorker struct {
}

func (*Mock_apiWorker) Delete

func (d *Mock_apiWorker) Delete(ctx context.Context, job model.Job, destConfig map[string]interface{}, destName string) model.JobStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL