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 ¶
func (m *StubSet) Do(service string, sc requests.SetConfigRequest) responses.SetConfigResponse
This is a stub implementation of the SetExecutor interface.
Click to show internal directories.
Click to hide internal directories.