api

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandEndpoints

func CommandEndpoints(config configuration.Config, router *httprouter.Router, cmd Command)

func GetRouter

func GetRouter(config configuration.Config, command Command) http.Handler

func HealthEndpoint

func HealthEndpoint(config configuration.Config, router *httprouter.Router, command Command)

func Start

func Start(ctx context.Context, config configuration.Config, command Command) (err error)

Types

type Command

type Command interface {
	Command(token auth.Token, cmd command.CommandMessage, timeout string, preferEventValue bool) (code int, resp interface{})
	Batch(token auth.Token, batch command.BatchRequest, timeout string, preferEventValue bool) []command.BatchResultElement
	GetMetricsHttpHandler() *metrics.Metrics
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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