server

package
v0.0.0-...-0cc5cf2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByzantineBrokerServer

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

func (ByzantineBrokerServer) Chain

func (*ByzantineBrokerServer) Echo

Echo receives a blank message from the publisher as a heartbeat.

func (*ByzantineBrokerServer) GetSubscribers

GetSubscribers returns a list of the subscribers. The request must come from a subscribed member.

func (ByzantineBrokerServer) Push

func (*ByzantineBrokerServer) Ready

func (ByzantineBrokerServer) Receive

func (*ByzantineBrokerServer) RegisterSubscriber

func (bz *ByzantineBrokerServer) RegisterSubscriber(ctx context.Context, sub *byzantine.Subscriber) (*byzantine.ReadyResponse, error)

RegisterSubscriber registers a new subscriber to the broker server.

type ByzantinePublisherServer

type ByzantinePublisherServer struct {
	*byzantine.Publisher
	CacheStore *bigcache.BigCache
	Logger     grpclog.Logger
}

func NewPublisherServer

func NewPublisherServer() *ByzantinePublisherServer

type ByzantineSubscriberServer

type ByzantineSubscriberServer struct {
	*byzantine.Subscriber
	Logger *grpclog.Logger
}

Jump to

Keyboard shortcuts

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