Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ValidResponseTypes = map[ResponseType]reflect.Type{ CommonResponse: reflect.TypeOf(new(NullResponse)), StubResponse: reflect.TypeOf(new(Stubs)), PubResponse: reflect.TypeOf(new(Pub)), AuthCodeResponse: reflect.TypeOf(new(AuthCodeReceipt)), AccountResponse: reflect.TypeOf(new(account.UniversalAccount)), ResourceResponse: reflect.TypeOf(new(resources.Resources)), ResourceDetailResponse: reflect.TypeOf(new(resources.ResourceDetail)), TransactionResponse: reflect.TypeOf(new(TXReceipt)), CommandResponse: reflect.TypeOf(new(StringResponse)), XATransactionListResponse: reflect.TypeOf(new(RawXATransactionListResponse)), UAResponse: reflect.TypeOf(new(UAReceipt)), XAResponse: reflect.TypeOf(new(RawXAResponse)), XATransactionResponse: reflect.TypeOf(new(RawXATransactionResponse)), } )
Functions ¶
This section is empty.
Types ¶
type AuthCodeInfo ¶
type AuthCodeInfo struct { RandomToken string `json:"randomToken"` ImageBase64 string `json:"imageBase64"` }
func (*AuthCodeInfo) ToString ¶
func (a *AuthCodeInfo) ToString() string
type AuthCodeReceipt ¶
type AuthCodeReceipt struct { ErrorCode common.ErrorCode `json:"errorCode"` Message string `json:"message"` AuthCode *AuthCodeInfo `json:"authCode"` }
func (*AuthCodeReceipt) ParseSelfFromJson ¶
func (a *AuthCodeReceipt) ParseSelfFromJson(valueBytes []byte)
func (*AuthCodeReceipt) ToString ¶
func (a *AuthCodeReceipt) ToString() string
type NullResponse ¶
type NullResponse struct { }
func (*NullResponse) ToString ¶
func (nr *NullResponse) ToString() string
type RawXAResponse ¶
type RawXAResponse struct { Status common.StatusCode `json:"status"` ChainErrorMessages []*eles.ChainErrorMessage `json:"chainErrorMessages"` }
func (*RawXAResponse) ParseSelfFromJson ¶
func (rxar *RawXAResponse) ParseSelfFromJson(valueBytes []byte)
func (*RawXAResponse) ToString ¶
func (rxar *RawXAResponse) ToString() string
type RawXATransactionListResponse ¶
type RawXATransactionListResponse struct { XaList []*xa.XA `json:"xaList"` NextOffsets map[string]int `json:"nextOffsets"` Finished bool `json:"finished"` }
func (*RawXATransactionListResponse) ParseSelfFromJson ¶
func (rx *RawXATransactionListResponse) ParseSelfFromJson(valueBytes []byte)
func (*RawXATransactionListResponse) ToString ¶
func (rx *RawXATransactionListResponse) ToString() string
type RawXATransactionResponse ¶
type RawXATransactionResponse struct { XaResponse *RawXAResponse `json:"xaResponse"` XaTransaction *xa.XATransaction `json:"xaTransaction"` }
func (*RawXATransactionResponse) ParseSelfFromJson ¶
func (xatp *RawXATransactionResponse) ParseSelfFromJson(valueBytes []byte)
func (*RawXATransactionResponse) ToString ¶
func (xatp *RawXATransactionResponse) ToString() string
type ResponseType ¶
type ResponseType string
const ( CommonResponse ResponseType = "CommonResponse" StubResponse ResponseType = "StubResponse" PubResponse ResponseType = "PubResponse" AuthCodeResponse ResponseType = "AuthCodeResponse" AccountResponse ResponseType = "AccountResponse" ResourceResponse ResponseType = "ResourceResponse" ResourceDetailResponse ResponseType = "ResourceDetailResponse" TransactionResponse ResponseType = "TransactionResponse" CommandResponse ResponseType = "CommandResponse" XATransactionListResponse ResponseType = "XATransactionListResponse" UAResponse ResponseType = "UAResponse" XAResponse ResponseType = "XAResponse" XATransactionResponse ResponseType = "XATransactionResponse" )
type StringResponse ¶
type StringResponse string
func (*StringResponse) ParseSelfFromJson ¶
func (s *StringResponse) ParseSelfFromJson(valueBytes []byte)
func (*StringResponse) ToString ¶
func (s *StringResponse) ToString() string
type Stubs ¶
type Stubs struct {
StubTypes []string `json:"stubTypes"`
}
func (*Stubs) ParseSelfFromJson ¶
type TXReceipt ¶
type TXReceipt struct { ErrorCode common.ErrorCode `json:"errorCode"` Message string `json:"message"` Hash string `json:"hash"` ExtraHashes []string `json:"extraHashes"` BlockNumber int `json:"blockNumber"` Result []string `json:"result"` }
func (*TXReceipt) ParseSelfFromJson ¶
type UAReceipt ¶
type UAReceipt struct { ErrorCode common.ErrorCode `json:"errorCode"` Message string `json:"message"` Credential string `json:"credential"` UniversalAccount *account.UniversalAccount `json:"universalAccount"` }
func (*UAReceipt) ParseSelfFromJson ¶
Click to show internal directories.
Click to hide internal directories.