Documentation
¶
Index ¶
Constants ¶
View Source
const ( UriQueryAccount = "/auth/accounts/%s" UriQueryCIPAL = "/ipal/ipal/%s" UriQueryAIPAL = "/aipal/node/%s" UriQueryAIPALList = "/aipal/list" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIPALBody ¶ added in v1.0.2
type AIPALBody struct {
Height string `json:"height"`
Resutl AIPALResult `json:"result"`
}
type AIPALListBody ¶ added in v1.0.2
type AIPALListBody struct {
Height string `json:"height"`
Result []AIPALResult `json:"result"`
}
type AIPALResult ¶ added in v1.0.2
type AccountBody ¶ added in v1.0.2
type AccountBody struct {
Height string `json:"height"`
Result AccountResult `json:"result"`
}
type AccountResult ¶ added in v1.0.2
type AccountResult struct {
Type string `json:"type"`
Value AccountValue `json:"value"`
}
type AccountValue ¶ added in v1.0.2
type CIPALBody ¶ added in v1.0.2
type CIPALBody struct {
Height string `json:"height"`
Resutl CIPALResult `json:"result"`
}
type CIPALResult ¶ added in v1.0.2
type CIPALResult struct {
UserAddress string `json:"user_address"`
ServiceInfos []CIPALServiceInfo `json:"service_infos"`
}
type CIPALServiceInfo ¶ added in v1.0.2
type LiteClient ¶
type LiteClient interface {
QueryAccount(address string) (AccountBody, error)
QueryCIPALByAddress(address string) (CIPALBody, error)
QueryAIPALByAddress(address string) (AIPALBody, error)
QueryAIPALList() (AIPALListBody, error)
}
func NewClient ¶
func NewClient(c basic.HttpClient) LiteClient
Click to show internal directories.
Click to hide internal directories.