structs

package
v0.0.0-...-e06075d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccCode = "SUCCESS"
	FailCode = "FAIL"

	SuccMsg = "deal done"
)

callback response code

View Source
const (
	SignatureTimestamp = "X-Signature-Timestamp"
	SignatureMethod    = "X-Signature-Method"
	SignatureInfo      = "X-Signature"
	APIKeyHeader       = "API-Key"

	HMACSHA256 = "hmac-sha256"
)

signature header

View Source
const (
	BlockchainName = "arxan"

	CreateAccountURL = "/api/v1/abox/account/create"

	CreateAssetURL = "/api/v1/abox/asset/register"
)

arxanchain api url

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountResponse

type AccountResponse struct {
	DID  string   `json:"did"`
	Tags []string `json:"tags"`
}

AccountResponse ...

type ArxanResponse

type ArxanResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Payload interface{} `json:"payload"`
}

ArxanResponse common rest response

type AssetRegisterRequest

type AssetRegisterRequest struct {
	OwnerDID    string   `json:"owner_did"`
	AssetName   string   `json:"asset_name"`
	Intro       string   `json:"intro"`
	Visibility  string   `json:"visibility"`
	Category    string   `json:"category"`
	Source      string   `json:"source"`
	Tags        []string `json:"tags"`
	Metadata    string   `json:"metadata"`
	CallbackURL string   `json:"callback_url"`
}

AssetRegisterRequest ...

type AssetRegisterResponse

type AssetRegisterResponse struct {
	AssetDID string `json:"asset_did"`
}

AssetRegisterResponse ...

type CallBackRequest

type CallBackRequest struct {
	ID          string `json:"id" binding:"required"`
	TxID        string `json:"tx_id" binding:"required"`
	Type        string `json:"type" binding:"required"`
	Status      string `json:"status" binding:"required"`
	BlockNumber uint64 `json:"block_number" binding:"required"`
	OnChainTime int64  `json:"on_chain_time" binding:"required"`
}

CallBackRequest ...

type CallBackResponse

type CallBackResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
}

CallBackResponse ...

type CreateAccountRequest

type CreateAccountRequest struct {
	Phone       string   `json:"phone"`
	Email       string   `json:"email"`
	UID         string   `json:"uid"`
	Tags        []string `json:"tags"`
	CallbackURL string   `json:"callback_url"`
}

CreateAccountRequest ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL