api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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.

func GetClient

func GetClient(config plugin.Config) Client

GetClient gets an initialized client plugin.

type ClientStatus

type ClientStatus int8

ClientStatus represents the status of the client.

const (
	Connected ClientStatus
	Disconnect
)

The client statuses.

Jump to

Keyboard shortcuts

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