Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Close() error
- func (c *Client) GetBlock(chain string) ([]*ResGetBlock, error)
- func (c *Client) GetMessageList(chain string, pagination *store.Pagination) (*ResMessageList, error)
- func (c *Client) MessageRemove(chain string, sn uint64) (*ResMessageRemove, error)
- func (c *Client) PruneDB() (*ResPruneDB, error)
- func (c *Client) RelayMessage(chain string, sn uint64) (*ResRelayMessage, error)
- func (c *Client) RevertMessage(chain string, sn uint64) (*ResRevertMessage, error)
- type ErrResponse
- type Event
- type Message
- type ReqGetBlock
- type ReqMessageList
- type ReqMessageRemove
- type ReqPruneDB
- type ReqRelayMessage
- type ReqRevertMessage
- type ResGetBlock
- type ResMessageList
- type ResMessageRemove
- type ResPruneDB
- type ResRelayMessage
- type ResRevertMessage
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBlock ¶
func (c *Client) GetBlock(chain string) ([]*ResGetBlock, error)
GetBlock sends GetBlock event to socket
func (*Client) GetMessageList ¶
func (c *Client) GetMessageList(chain string, pagination *store.Pagination) (*ResMessageList, error)
GetMessageList sends GetMessageList event to socket
func (*Client) MessageRemove ¶
func (c *Client) MessageRemove(chain string, sn uint64) (*ResMessageRemove, error)
MessageRemove sends MessageRemove event to socket
func (*Client) PruneDB ¶
func (c *Client) PruneDB() (*ResPruneDB, error)
PruneDB sends PruneDB event to socket
func (*Client) RelayMessage ¶
func (c *Client) RelayMessage(chain string, sn uint64) (*ResRelayMessage, error)
RelayMessage sends RelayMessage event to socket
func (*Client) RevertMessage ¶
func (c *Client) RevertMessage(chain string, sn uint64) (*ResRevertMessage, error)
RevertMessage sends RevertMessage event to socket
type ErrResponse ¶
type ErrResponse struct {
Error string
}
type ReqGetBlock ¶
type ReqMessageList ¶
type ReqMessageList struct { Chain string Pagination *store.Pagination }
type ReqMessageRemove ¶
type ReqPruneDB ¶
type ReqPruneDB struct {
Chain string
}
type ReqRelayMessage ¶
type ReqRevertMessage ¶
type ResGetBlock ¶
type ResMessageList ¶
type ResMessageList struct { Messages []*types.RouteMessage Total int }
type ResMessageRemove ¶
type ResPruneDB ¶
type ResPruneDB struct {
Status string
}
type ResRelayMessage ¶
type ResRelayMessage struct {
*types.RouteMessage
}
type ResRevertMessage ¶
type ResRevertMessage struct {
Sn uint64
}
Click to show internal directories.
Click to hide internal directories.