node

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouterListenPort    = 6022
	AssemblerListenPort = 6023
	BatcherListenPort   = 6024
	ConsensusListenPort = 6025
)
View Source
const (
	AssemblerListenType
	BatcherListenType
	ConsensusListenType
	RouterListenType
)

Variables

This section is empty.

Functions

func CertificateToString

func CertificateToString(c *x509.Certificate) string

func CreateGRPCAssembler

func CreateGRPCAssembler(conf *config.AssemblerNodeConfig) *comm.GRPCServer

func CreateGRPCBatcher

func CreateGRPCBatcher(conf *config.BatcherNodeConfig) *comm.GRPCServer

func CreateGRPCConsensus

func CreateGRPCConsensus(conf *config.ConsenterNodeConfig) *comm.GRPCServer

func CreateGRPCRouter

func CreateGRPCRouter(conf *config.RouterNodeConfig) *comm.GRPCServer

func ExtractCertificateFromContext

func ExtractCertificateFromContext(ctx context.Context) *x509.Certificate

func ListenAddressForNode

func ListenAddressForNode(endpointType ServerEndpointType, listenAddress string) string

func TLSCAcertsFromShards

func TLSCAcertsFromShards(shards []config.ShardInfo) [][]byte

Types

type ServerEndpointType

type ServerEndpointType uint8

Directories

Path Synopsis
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
protos
comm/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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