shim

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package shim contains implementations of internal types in terms of the external types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerializingEndpoint

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

func NewSerializingEndpoint

func NewSerializingEndpoint(
	chTelemetry chan<- *protobuf.TelemetryWrapper,
	configDigest types.ConfigDigest,
	endpoint commontypes.BinaryNetworkEndpoint,
	logger commontypes.Logger,
) *SerializingEndpoint

func (*SerializingEndpoint) Broadcast

func (n *SerializingEndpoint) Broadcast(msg protocol.Message)

func (*SerializingEndpoint) Close

func (n *SerializingEndpoint) Close() error

Close closes the SerializingEndpoint. It will also close the underlying endpoint.

func (*SerializingEndpoint) Receive

func (n *SerializingEndpoint) Receive() <-chan protocol.MessageWithSender

func (*SerializingEndpoint) SendTo

func (*SerializingEndpoint) Start

func (n *SerializingEndpoint) Start() error

Start starts the SerializingEndpoint. It will also start the underlying endpoint.

type TelemetrySender

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

func MakeTelemetrySender

func MakeTelemetrySender(chTelemetry chan<- *protobuf.TelemetryWrapper, logger commontypes.Logger) TelemetrySender

func (TelemetrySender) RoundStarted

func (ts TelemetrySender) RoundStarted(
	configDigest types.ConfigDigest,
	epoch uint32,
	round uint8,
	leader commontypes.OracleID,
)

Jump to

Keyboard shortcuts

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