package
1.10.0
Repository: https://github.com/itzmeanjan/ette.git
Documentation: pkg.go.dev

# Functions

CheckSimilarity - Performing case insensitive matching between two strings.
NewBlockConsumer - Creating one new block data consumer, which will subscribe to block topic & listen for data being published on this channel, which will eventually be delivered to client application over websocket connection.
NewEventConsumer - Creating one new event data consumer, which will subscribe to event topic & listen for data being published on this channel & check whether received data is what, client is interested in or not, which will eventually be delivered to client application over websocket connection.
NewTransactionConsumer - Creating one new transaction data consumer, which will subscribe to transaction topic & listen for data being published on this channel & check whether received data is what, client is interested in or not, which will eventually be delivered to client application over websocket connection.

# Structs

BlockConsumer - To be subscribed to `block` topic using this consumer handle and client connected using websocket needs to be delivered this piece of data.
EventConsumer - Event consumption to be managed by this struct, when new websocket connection requests for receiving event data, it'll create this struct, with necessary pieces of information, which is to be required when delivering data & checking whether this connection has really requested notification for this event or not.
SubscriptionManager - Higher level abstraction to be used by websocket connection acceptor, for subscribing to topics They don't need to know that for each subscription request over same websocket connection, one new pubsub subscription may not be created For each client there could be possibly at max 3 pubsub subscriptions i.e.
SubscriptionRequest - Real time data subscription/ unsubscription request needs to be sent in this form, from client application.
SubscriptionResponse - Real time data subscription/ unsubscription request to be responded with in this form.
TransactionConsumer - Transaction consumer info holder struct, to be used for handling reception of published data & checking whether this client has really subscribed for this data or not If yes, also deliver data to client application, connected over websocket.

# Interfaces

Consumer - Block, transaction & event consumers need to implement these methods.