xmtp

package
v0.0.0-...-6c5e296 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DELIVERY_TIMEOUT = 15 * time.Second
View Source
const STARTING_SLEEP_TIME = 100 * time.Millisecond

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, apiAddress string, useTls bool, clientVersion, appVersion string) (v1.MessageApiClient, error)

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func NewListener

func NewListener(
	ctx context.Context,
	logger *zap.Logger,
	opts options.XmtpOptions,
	installations interfaces.Installations,
	subscriptions interfaces.Subscriptions,
	deliveryServices []interfaces.Delivery,
	clientVersion string,
	appVersion string,
) (*Listener, error)

func (*Listener) Start

func (l *Listener) Start()

func (*Listener) Stop

func (l *Listener) Stop()

Jump to

Keyboard shortcuts

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