handler

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLog

func ChangeLog(req *server.Request) (proto.Message, errors.Error)

ChangeLog will read a time series of changes made within a range

func Compile

func Compile(req *server.Request) (proto.Message, errors.Error)

Compile constructs a single, merged, view of config, combining many individual elements

func Delete

func Delete(req *server.Request) (proto.Message, errors.Error)

Delete will remove the config from a single ID, optionally at some path

func Diff

func Diff(req *server.Request) (proto.Message, errors.Error)

Diff will provide a GNU style diff for a configuration at this level in the path with the supplied config (for the given ID).

func DoCompile

func DoCompile(ids []string, path string) (config, hash string, compileErr errors.Error)

DoCompile does the real work for compile - and is implemented like this because we want an HTTP interface in addition to the platform interface

func Explain

func Explain(req *server.Request) (proto.Message, errors.Error)

Explain will compile config and then explain from which ID the "winning" piece of config came

func MultiCompile

func MultiCompile(req *server.Request) (proto.Message, errors.Error)

MultiCompile is an equivalent of repeated executions of "Compile". Its goal is to save traffic. The contract of multiconfig is as follows: For every request, compile function is executed. If the received hash is identical to the received hash, empty config will be returned to indicate that no changes were made since the previous config.

func Read

func Read(req *server.Request) (proto.Message, errors.Error)

Read will read a single ID config - and should only be used when editing config (use compile when reading for use)

func Update

func Update(req *server.Request) (proto.Message, errors.Error)

Update will completely replace configuration at this level in the path with the supplied config (for the given ID)

Types

type NSQEvent

type NSQEvent struct {
	Id        string
	Type      string
	Timestamp string
	Details   map[string]string
}

Jump to

Keyboard shortcuts

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