configuration_service

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	START_PROCESSING_ANY_REQUEST = 1
	STOP_PROCESING_ANY_REQUEST   = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationService

type ConfigurationService struct {
	// contains filtered or unexported fields
}

func NewConfigurationService

func NewConfigurationService(messageBroadcaster *MessageBroadcaster) *ConfigurationService

You will be able to start the Daemon without an Authentication Address for now but without Authentication address , you cannot use the operator UI functionality

func (ConfigurationService) GetConfiguration

func (service ConfigurationService) GetConfiguration(ctx context.Context, request *EmptyRequest) (response *ConfigurationResponse, err error)

TO DO Separate PRs will be submitted to implement all the function below

func (ConfigurationService) IsDaemonProcessingRequests

func (service ConfigurationService) IsDaemonProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)

func (ConfigurationService) StartProcessingRequests

func (service ConfigurationService) StartProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)

func (ConfigurationService) StopProcessingRequests

func (service ConfigurationService) StopProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)

func (ConfigurationService) UpdateConfiguration

func (service ConfigurationService) UpdateConfiguration(ctx context.Context, request *UpdateRequest) (response *ConfigurationResponse, err error)

type MessageBroadcaster

type MessageBroadcaster struct {
	// contains filtered or unexported fields
}

func NewChannelBroadcaster

func NewChannelBroadcaster() *MessageBroadcaster

func (*MessageBroadcaster) NewSubscriber

func (broadcast *MessageBroadcaster) NewSubscriber() chan int

Create a New Subscriber for this broadcaster message Interceptors or health checks can subscribe to this and react accordingly

func (*MessageBroadcaster) Publish

func (broadcast *MessageBroadcaster) Publish()

Once a message is received, pass it down to all the subscribers

Jump to

Keyboard shortcuts

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