workflows

package
v0.0.0-...-317f81d Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReindexURI = "/api/v1/workflow/reindex_reporting/batch"
	HealthURI  = "/api/v1/health"
)
View Source
const (
	ServiceInventory = "inventory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CheckHealth(ctx context.Context) error
	StartReindex(c context.Context, deviceIDs []model.DeviceID) error
}

Client is the workflows client

func NewClient

func NewClient(url string, opts ...ClientOptions) Client

NewClient returns a new workflows client

type ClientOptions

type ClientOptions struct {
	Client *http.Client
}

type ReindexWorkflow

type ReindexWorkflow struct {
	RequestID string `json:"request_id"`
	TenantID  string `json:"tenant_id"`
	DeviceID  string `json:"device_id"`
	Service   string `json:"service"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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