wadohbe

package
v0.0.0-...-80f9fc5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 9 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 struct {
	Service pb.ControllerServiceClient
	// contains filtered or unexported fields
}

Client is wrapper around wadoh-be grpc client.

func NewClient

func NewClient(address string) (*Client, error)

func (*Client) ReceiveMessage

func (c *Client) ReceiveMessage() <-chan EventMessage

ReceiveMessage wraps pb.ControllerServiceClient.ReceiveMessage call with additional retry without closing channel when got retryable error code such Unavailable. But after maxretries limit hit, channel will be closed.

type EventMessage

type EventMessage interface {
	GetFrom() string
	GetJid() string
	GetMessage() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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