Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
plugin.SharingPlugin
// GetConnectedClient returns the connected client to publish events.
GetConnectedClient() interface{}
// RegisterListener register a listener to listen the client status.
RegisterListener(chan<- ClientStatus)
}
Client is a plugin interface, that defines new clients, such as gRPC client and Kafka client.
type ClientStatus ¶
type ClientStatus int8
ClientStatus represents the status of the client.
const ( Connected ClientStatus Disconnect )
The client statuses.
Click to show internal directories.
Click to hide internal directories.