connector

package
v0.0.0-...-2a45ea8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package connector implements generally useful replica connector functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicaConnector

type ReplicaConnector interface {
	api.ReplicaConnector
	AssignReplica(id uint32, replica api.ConnectionHandler)
}

ReplicaConnector represents a generic implementation of connectivity interface. It simply dispatches API method calls to corresponding local replica representations. Replica representations should be assigned with SetReplica method before it can be used.

AssignReplica method assigns a replica representation to the replica identifier.

func NewClientSide

func NewClientSide() ReplicaConnector

NewClientSide creates a new instance of ReplicaConnector to use at client side, i.e. initiate client-to-replica connections.

func NewReplicaSide

func NewReplicaSide() ReplicaConnector

NewReplicaSide creates a new instance of ReplicaConnector to use at replica side, i.e. initiate replica-to-replica connections.

Jump to

Keyboard shortcuts

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