Versions in this module Expand all Collapse all v0 v0.1.3 Oct 26, 2023 v0.0.3 Oct 20, 2023 Changes in this version + const WSRoute + var ErrEmptyDataToSend = errors.New("empty data to send") + var ErrNilHttpServer = errors.New("nil http server") + var ErrNilLogger = errors.New("nil logger") + var ErrNilMarshaller = errors.New("nil marshaller") + var ErrNilUint64ByteSliceConverter = errors.New("nil uint64 byte slice converter") + var ErrNilWebSocketClient = errors.New("nil websocket client") + var ErrNilWebSocketSender = errors.New("nil sender sender") + var ErrNoClientToSendTo = errors.New("no client to send to") + var ErrServerIsClosed = errors.New("http: Server closed") + var ErrWebSocketClientNotFound = errors.New("websocket client not found") + var ErrWebSocketServerIsClosed = errors.New("server is closed") + type ArgsFinalizedBlock struct + HeaderHash []byte + type ArgsRevertIndexedBlock struct + Body data.BodyHandler + Header data.HeaderHandler + HeaderType core.HeaderType + type ArgsSaveAccounts struct + Acc map[string]*outport.AlteredAccount + BlockTimestamp uint64 + ShardID uint32 + type ArgsSaveBlock struct + HeaderType core.HeaderType + type ArgsSaveRoundsInfo struct + RoundsInfos []*outport.RoundInfo + type ArgsSaveValidatorsPubKeys struct + Epoch uint32 + ValidatorsPubKeys map[uint32][][]byte + type ArgsSaveValidatorsRating struct + IndexID string + InfoRating []*outport.ValidatorRatingInfo + type OperationType uint8 + const OperationFinalizedBlock + const OperationRevertIndexedBlock + const OperationSaveAccounts + const OperationSaveBlock + const OperationSaveRoundsInfo + const OperationSaveValidatorsPubKeys + const OperationSaveValidatorsRating + func OperationTypeFromUint64(value uint64) OperationType + func (ot OperationType) String() string + func (ot OperationType) Uint32() uint32 + type WSConn interface + ReadMessage func() (messageType int, payload []byte, err error) + WriteMessage func(messageType int, data []byte) error + type WebSocketConfig struct + URL string + WithAcknowledge bool + type WsSendArgs struct + Payload []byte