Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventRecorder ¶
type EventRecorder interface {
// Initializing should be called to indicate that the node is initializing.
Initializing()
// Connected should be called to indicate that the node is connected to the cluster.
Connected()
// Active should be called to indicate that the node is active in the cluster.
Active()
// Disconnected should be called to indicate that the node is disconnected from the cluster.
Disconnected()
// Failed should be called to indicate that the node has failed.
Failed()
}
EventRecorder can be used to record various event.
func FromContext ¶
func FromContext(ctx context.Context) EventRecorder
FromContext returns the event recorder from the context.
func NewRecorder ¶
NewRecorder creates a new event recorder.
Click to show internal directories.
Click to hide internal directories.