api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 15 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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