Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyUrl = errors.New("empty port and IP provided")
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { GetAccountChannels(req *account.AccountChannelsRequest) (*account.AccountChannelsResponse, XRPLResponse, error) GetAccountInfo(req *account.AccountInfoRequest) (*account.AccountInfoResponse, XRPLResponse, error) }
type Client ¶
type Client interface {
SendRequest(req XRPLRequest) (XRPLResponse, error)
}
type JsonRpcConfig ¶
type JsonRpcConfig struct { HTTPClient HTTPClient Url string Headers map[string][]string }
func NewJsonRpcConfig ¶
func NewJsonRpcConfig(url string, opts ...JsonRpcConfigOpt) (*JsonRpcConfig, error)
type JsonRpcConfigOpt ¶
type JsonRpcConfigOpt func(c *JsonRpcConfig)
func WithHttpClient ¶
func WithHttpClient(cl HTTPClient) JsonRpcConfigOpt
type XRPLClient ¶
type XRPLClient struct { Account Account // contains filtered or unexported fields }
func NewXRPLClient ¶
func NewXRPLClient(cl Client) *XRPLClient
func (*XRPLClient) Client ¶
func (c *XRPLClient) Client() Client
type XRPLRequest ¶
type XRPLResponse ¶
type XRPLResponseWarning ¶
Click to show internal directories.
Click to hide internal directories.