clusterrouter

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router defines cluster router type.

func New

func New(connMng *clusterconnmanager.Manager) *Router

New returns a new initialized Router instance.

func (*Router) Disconnect

func (r *Router) Disconnect(ctx context.Context, username, resource string, streamErr *streamerror.Error, instanceID string) error

Disconnect performs remote cluster resource disconnection.

func (*Router) Route

func (r *Router) Route(ctx context.Context, stanza stravaganza.Stanza, username, resource, instanceID string) error

Route routes an XMPP stanza to a cluster remote resource.

func (*Router) Start

func (r *Router) Start(_ context.Context) error

Start starts cluster router.

func (*Router) Stop

func (r *Router) Stop(_ context.Context) error

Stop stops cluster router.

Jump to

Keyboard shortcuts

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