producer

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlockEvent

func CreateBlockEvent(te *common.Block) *pb.Event

func CreateBlockEvents

func CreateBlockEvents(block *common.Block) (bevent *pb.Event, fbevent *pb.Event, channelID string, err error)

func CreateFilteredBlockEvent

func CreateFilteredBlockEvent(te *pb.FilteredBlock) *pb.Event

func Send

func Send(e *pb.Event) error

Types

type EventsServer

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

func NewEventsServer

func NewEventsServer(config *EventsServerConfig) *EventsServer

func (*EventsServer) Chat

func (e *EventsServer) Chat(stream pb.Events_ChatServer) error

type EventsServerConfig

type EventsServerConfig struct {
	BufferSize       uint
	Timeout          time.Duration
	SendTimeout      time.Duration
	TimeWindow       time.Duration
	BindingInspector comm.BindingInspector
}

type Set

type Set map[*handler]struct{}

Jump to

Keyboard shortcuts

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