config

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config map[string]Service

Config the key is a service address, and the value is the metadata used to figure out what to do when that service is called.

type Resolver

type Resolver struct {
	Type         string `json:"type"`
	Endpoint     string `json:"endpoint"`
	Payload      []byte `json:"payload"`
	MockResponse []byte `json:"mock_response"`
}

Resolver is the action to perform instead of the original action. I.e http post request

type Service

type Service struct {
	Type    string   `json:"type"`
	Resolve Resolver `json:"resolve"`
}

Service type is the original type, i.e. queue, event etc. Resolver is the action to perform instead.

Jump to

Keyboard shortcuts

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