configuration_service

package
v5.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 12 Imported by: 0

README

Configuration Signatures

Read Daemon Configuration

Pause / Start Daemon

Change Daemon Configuration

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 authenticationAddressList , 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()

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