batch

package
v0.0.0-...-e0ce755 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create is a wrapper around the HTTP handler for the POST /batch route. It takes a kafka producer as argument in order to trigger batch events.

Types

type Batch

type Batch struct {
	ID        string     `json:"id"`
	Timestamp string     `json:"timestamp,omitempty"`
	Resources []Resource `json:"resources,omitempty"`
}

Batch describes a batch in request response payload

type Event

type Event struct {
	BatchID    string `json:"batch_id"`
	ResourceID string `json:"resource_id"`
}

Event is the kind of event produced to trigger a batch ETL.

type Resource

type Resource struct {
	ID           string `json:"resource_id"`
	ResourceType string `json:"resource_type,omitempty"`
}

Resource descibes a resource of a batch

type ResourceRequest

type ResourceRequest struct {
	Resources []Resource `json:"resources"`
}

ResourceRequest describes a list of resources of a batch

Jump to

Keyboard shortcuts

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