Documentation
¶
Index ¶
- func CRC64RequestToShard(shardCount uint16) func([]byte) ([]byte, uint16)
- type MapperCRC64
- type Net
- type Response
- type Router
- func (r *Router) Address() string
- func (r *Router) Broadcast(stream orderer.AtomicBroadcast_BroadcastServer) error
- func (r *Router) Deliver(server orderer.AtomicBroadcast_DeliverServer) error
- func (r *Router) IsAllConnectionsDown() bool
- func (r *Router) IsAllStreamsOK() bool
- func (r *Router) StartRouterService() <-chan struct{}
- func (r *Router) Stop()
- func (r *Router) Submit(ctx context.Context, request *protos.Request) (*protos.SubmitResponse, error)
- func (r *Router) SubmitStream(stream protos.RequestTransmit_SubmitStreamServer) error
- type ShardMapper
- type ShardRouter
- type TrackedRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MapperCRC64 ¶ added in v0.0.19
type Response ¶
type Response struct { *protos.SubmitResponse // contains filtered or unexported fields }
func (*Response) GetResponseError ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(config *nodeconfig.RouterNodeConfig, logger types.Logger) *Router
func (*Router) Broadcast ¶
func (r *Router) Broadcast(stream orderer.AtomicBroadcast_BroadcastServer) error
func (*Router) Deliver ¶
func (r *Router) Deliver(server orderer.AtomicBroadcast_DeliverServer) error
func (*Router) IsAllConnectionsDown ¶ added in v0.0.15
IsAllConnectionsDown checks that all streams across all shard-routers are disconnected from a batcher. Use for testing only.
func (*Router) IsAllStreamsOK ¶ added in v0.0.15
IsAllStreamsOK checks that all the streams accross all shard-routers are non-faulty. Use for testing only.
func (*Router) StartRouterService ¶
func (r *Router) StartRouterService() <-chan struct{}
func (*Router) SubmitStream ¶
func (r *Router) SubmitStream(stream protos.RequestTransmit_SubmitStreamServer) error
type ShardMapper ¶ added in v0.0.19
type ShardRouter ¶
type ShardRouter struct {
// contains filtered or unexported fields
}
func NewShardRouter ¶
func NewShardRouter(l types.Logger, batcherEndpoint string, batcherRootCAs [][]byte, tlsCert []byte, tlsKey []byte, numOfConnectionsForBatcher int, numOfgRPCStreamsPerConnection int, verifier *requestfilter.RulesVerifier, ) *ShardRouter
func (*ShardRouter) IsAllStreamsOKinSR ¶ added in v0.0.15
func (sr *ShardRouter) IsAllStreamsOKinSR() bool
IsAllStreamsOKinSR checks that all the streams in the shard-router are not faulty. Use for testing only.
func (*ShardRouter) IsConnectionsToBatcherDown ¶ added in v0.0.15
func (sr *ShardRouter) IsConnectionsToBatcherDown() bool
IsConnectionsToBatcherDown checks that all the streams are faulty (disconnected from batcher). Use for testing only.
func (*ShardRouter) MaybeInit ¶
func (sr *ShardRouter) MaybeInit()
func (*ShardRouter) NewForward ¶ added in v0.0.19
func (sr *ShardRouter) NewForward(trackedReq *TrackedRequest)
func (*ShardRouter) Stop ¶ added in v0.0.15
func (sr *ShardRouter) Stop()
type TrackedRequest ¶ added in v0.0.19
type TrackedRequest struct {
// contains filtered or unexported fields
}
func CreateTrackedRequest ¶ added in v0.0.19
Click to show internal directories.
Click to hide internal directories.