setconfig

package
v1.2.2-dev.38 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(executor SetExecutor) *set

New is a factory function that returns an initialized set struct.

func NewExecutor

func NewExecutor(lc logger.LoggingClient, configuration *config.ConfigurationStruct) *executor

NewExecutor is a factory function that returns an initialized executor struct.

Types

type SetExecutor

type SetExecutor interface {
	Do(service string, sc requests.SetConfigRequest) responses.SetConfigResponse
}

GetExecutor defines a contract for setting a service's configuration.

type StubSet

type StubSet struct {
	Called int // number of times stub is called
	// contains filtered or unexported fields
}

func NewStubSet

func NewStubSet(results stubCallSet) StubSet

func (*StubSet) Do

This is a stub implementation of the SetExecutor interface.

Jump to

Keyboard shortcuts

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