shim

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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