coordinator

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	E2CoreMetricsURI = "/meta/metrics"
	E2CoreHealthURI  = "/health"
)

Variables

This section is empty.

Functions

func ReadParam

func ReadParam(ctx *vk.Ctx, name string) string

Types

type Coordinator

type Coordinator struct {
	// contains filtered or unexported fields
}

Coordinator is a type that is responsible for converting the directive into usable Vektor handles by coordinating Reactr jobs and meshing when needed.

func New

func New(syncer *syncer.Syncer, options *options.Options) *Coordinator

New creates a coordinator.

func (*Coordinator) SetupHandlers

func (c *Coordinator) SetupHandlers() (*vk.Router, error)

SetupHandlers configures all of the app's handlers and generates a Vektor Router for the app.

func (*Coordinator) SetupWorkflows

func (c *Coordinator) SetupWorkflows(router *vk.Router) error

TODO: Workflows are not fully implemented, need to add scheduled execution

func (*Coordinator) Shutdown

func (c *Coordinator) Shutdown()

func (*Coordinator) Start

func (c *Coordinator) Start() error

Start allows the Coordinator to bootstrap.

type MetricsResponse

type MetricsResponse struct {
	Scheduler scheduler.ScalerMetrics `json:"scheduler"`
}

type Values

type Values struct {
	TraceID   string
	Now       time.Time
	RequestID string
}

Values represent state for each request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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