Documentation
¶
Index ¶
- Constants
- func CertificateToString(c *x509.Certificate) string
- func CreateGRPCAssembler(conf *config.AssemblerNodeConfig) *comm.GRPCServer
- func CreateGRPCBatcher(conf *config.BatcherNodeConfig) *comm.GRPCServer
- func CreateGRPCConsensus(conf *config.ConsenterNodeConfig) *comm.GRPCServer
- func CreateGRPCRouter(conf *config.RouterNodeConfig) *comm.GRPCServer
- func ExtractCertificateFromContext(ctx context.Context) *x509.Certificate
- func ListenAddressForNode(endpointType ServerEndpointType, listenAddress string) string
- func TLSCAcertsFromShards(shards []config.ShardInfo) [][]byte
- type ServerEndpointType
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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.