Documentation ¶
Index ¶
- Variables
- func SendRawRequest(rtype, url, auth string, form *url.Values) ([]byte, error)
- func SendRequest(rtype, url, auth string, form *url.Values, v interface{}) error
- func WithCors(h http.Handler) http.Handler
- type BlockDetailedInfo
- type BlockHeaderInfo
- type Client
- type Connect
- func (connect *Connect) Login() error
- func (connect *Connect) PostTxResult(name string, form *url.Values) (id int64, msg string, err error)
- func (connect *Connect) SendGet(url string, form *url.Values, v interface{}) error
- func (connect *Connect) SendMultipart(url string, files map[string][]byte, v interface{}) error
- func (connect *Connect) SendPost(url string, form *url.Values, v interface{}) error
- func (connect *Connect) WaitTx(hash string) (int64, error)
- func (connect *Connect) WaitTxList(hashes []string) (map[string]WaitResult, error)
- type FullNodeJSON
- type JWTClaims
- type Mode
- type NetworkResult
- type Router
- type TableName
- type TxDetailedInfo
- type TxInfo
- type WaitResult
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEcosystemNotFound = errors.New("Ecosystem not found")
)
Functions ¶
func SendRawRequest ¶
Types ¶
type BlockDetailedInfo ¶
type BlockDetailedInfo struct { Header BlockHeaderInfo `json:"header"` Hash []byte `json:"hash"` EcosystemID int64 `json:"-"` NodePosition int64 `json:"node_position"` KeyID int64 `json:"key_id"` Time int64 `json:"time"` Tx int32 `json:"tx_count"` RollbacksHash []byte `json:"rollbacks_hash"` MrklRoot []byte `json:"mrkl_root"` BinData []byte `json:"bin_data"` SysUpdate bool `json:"-"` GenBlock bool `json:"-"` StopCount int `json:"stop_count"` Transactions []TxDetailedInfo `json:"transactions"` }
type BlockHeaderInfo ¶
type Client ¶
type Client struct { KeyID int64 AccountID string EcosystemID int64 EcosystemName string RoleID int64 IsMobile bool }
Client represents data of client
type Connect ¶
func (*Connect) PostTxResult ¶
func (*Connect) SendMultipart ¶
func (*Connect) WaitTxList ¶
func (connect *Connect) WaitTxList(hashes []string) (map[string]WaitResult, error)
type FullNodeJSON ¶
type FullNodeJSON struct { TCPAddress string `json:"tcp_address"` APIAddress string `json:"api_address"` KeyID string `json:"key_id"` PublicKey string `json:"public_key"` UnbanTime string `json:"unban_time,er"` Stopped bool `json:"stopped"` }
func GetNodesJSON ¶
func GetNodesJSON() []FullNodeJSON
type JWTClaims ¶
type JWTClaims struct { UID string `json:"uid,omitempty"` EcosystemID string `json:"ecosystem_id,omitempty"` KeyID string `json:"key_id,omitempty"` AccountID string `json:"account_id,omitempty"` RoleID string `json:"role_id,omitempty"` IsMobile bool `json:"is_mobile,omitempty"` jwt.StandardClaims }
JWTClaims is storing jwt claims
type Mode ¶
type Mode struct { EcosysIDValidator types.EcosystemIDValidator EcosysNameGetter types.EcosystemNameGetter EcosysLookupGetter types.EcosystemLookupGetter ContractRunner types.SmartContractRunner ClientTxProcessor types.ClientTxPreprocessor }
func (Mode) GetAppParamHandler ¶
func (m Mode) GetAppParamHandler(w http.ResponseWriter, r *http.Request)
func (Mode) SetBlockchainRoutes ¶
type NetworkResult ¶
type NetworkResult struct { NetworkID string `json:"network_id"` CentrifugoURL string `json:"centrifugo_url"` Test bool `json:"test"` FullNodes []FullNodeJSON `json:"full_nodes"` }
type TableName ¶
type TableName struct {
// contains filtered or unexported fields
}
func ToTableName ¶
type TxDetailedInfo ¶
type WaitResult ¶
Source Files ¶
- api.go
- app_content.go
- appparam.go
- appparams.go
- auth.go
- balance.go
- block.go
- common_forms.go
- config.go
- content.go
- context.go
- contracts.go
- data.go
- ecosystemparam.go
- ecosystemparams.go
- errors.go
- getcontract.go
- getuid.go
- history.go
- interface.go
- keyinfo.go
- list.go
- login.go
- member.go
- metrics.go
- middlewares.go
- network.go
- node.go
- request.go
- route.go
- row.go
- sections.go
- send_tx.go
- systemparams.go
- table.go
- tables.go
- test.go
- trash.go
- txinfo.go
- txstatus.go
- version.go
Click to show internal directories.
Click to hide internal directories.