server

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DeploymentIDLength = 8

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	engine string,
	dataDir string,
	httpListenAddr string,
	corsHostRegexAllow *regexp.Regexp,
	logger *zap.Logger,
) (*server, error)

Types

type Engine

type Engine interface {
	Create(deploymentID string, pkg *pbsubstreams.Package, zlog *zap.Logger) error
	Update(deploymentID string, pkg *pbsubstreams.Package, reset bool, zlog *zap.Logger) error

	Resume(deploymentID string, currentState pbsinksvc.DeploymentStatus, zlog *zap.Logger) (string, error)
	Pause(deploymentID string, zlog *zap.Logger) (string, error)
	Stop(deploymentID string, zlog *zap.Logger) (string, error)

	Remove(deploymentID string, zlog *zap.Logger) (string, error)

	Info(deploymentID string, zlog *zap.Logger) (pbsinksvc.DeploymentStatus, string, map[string]string, *pbsinksvc.PackageInfo, *pbsinksvc.SinkProgress, error)
	List(zlog *zap.Logger) ([]*pbsinksvc.DeploymentWithStatus, error)

	Shutdown(zlog *zap.Logger) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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