server

package
v0.0.0-...-53b40aa Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: AGPL-3.0, AGPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender interface {
	Send(msg []byte)
}

type ServerConnection

type ServerConnection struct {
	Id               *ServerConnection
	Host             string
	RMId             common.RMId
	BootCount        uint32
	TopologyVerClock *types.VerClock
	ClusterUUId      uint64
	Sender
	Flushed      func()
	ShutdownSync func()
	Status       func(*status.StatusConsumer)
}

type ServerConnectionPublisher

type ServerConnectionPublisher interface {
	AddServerConnectionSubscriber(obs ServerConnectionSubscriber)
	RemoveServerConnectionSubscriber(obs ServerConnectionSubscriber)
}

type ServerConnectionSubscriber

type ServerConnectionSubscriber interface {
	ConnectedRMs(map[common.RMId]ServerConnection)
	ConnectionLost(common.RMId, map[common.RMId]ServerConnection)
	ConnectionEstablished(ServerConnection, map[common.RMId]ServerConnection, func())
}

Jump to

Keyboard shortcuts

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