Documentation ¶
Index ¶
- Constants
- type ConfigurationService
- func (service ConfigurationService) GetConfiguration(ctx context.Context, request *EmptyRequest) (response *ConfigurationResponse, err error)
- func (service ConfigurationService) IsDaemonProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)
- func (service ConfigurationService) StartProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)
- func (service ConfigurationService) StopProcessingRequests(ctx context.Context, request *EmptyRequest) (response *StatusResponse, err error)
- func (service ConfigurationService) UpdateConfiguration(ctx context.Context, request *UpdateRequest) (response *ConfigurationResponse, err error)
- type MessageBroadcaster
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()
Once a message is received, pass it down to all the subscribers
Click to show internal directories.
Click to hide internal directories.