Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ws client
func (Client) GetReader ¶
func (c Client) GetReader() Delivery
GetReader return a reader to watch messages
func (*Client) StarConnection ¶
StarConnection create a conn and return messages to readers
type Customization ¶
type Customization struct { Addresses []string `json:"addresses"` Types []string `json:"subcribed_types"` }
Customization is the customization for the ws
func NewCustom ¶
func NewCustom(types []Types, addresses ...string) *Customization
NewCustom creates a customization to your client
type Option ¶
Option is responsible for the client setup
func WithContext ¶
WithContext setup a custom context to the client
func WithCustom ¶
func WithCustom(custom *Customization) Option
WithCustom setup your customization pattern
type Types ¶
type Types string
Types you can choose the socket message types to receive
const ( UNKNOWN Types = "UNKNOWN" //USER_TRANSACTIONS read address transactions USER_TRANSACTIONS Types = "user_transaction" //ACCOUNTS read address account changes ACCOUNTS Types = "accounts" //TRANSACTIONS read all transactions TRANSACTIONS Types = "transaction" //BLOCKS read only blocks BLOCKS Types = "blocks" )
Click to show internal directories.
Click to hide internal directories.