Documentation ¶
Index ¶
- Constants
- func AddGenesis(remote string) (*model.Genesi, error)
- func ChainStatus(chainID string, cached bool) (*types.ResultStatus, error)
- func CheckCode(email, code string) bool
- func CheckEnv() error
- func CheckSession(token string) (*account.Account, error)
- func CreateBlock(b *tmctypes.ResultBlock, vs *tmctypes.ResultValidators) error
- func CreateConsensusState(chainID string, cs *tmctypes.ResultConsensusState) error
- func CreateNode(name, baseURL, secretKey string, routes []NodeRoute) error
- func DeleteNodeByName(name string) error
- func Doctor() error
- func ListPeers(chainID string) (*types.ResultPeers, error)
- func Login(mail, password string) (*session, error)
- func Logout(uid int64) error
- func RetrieveOrInsert(chainID string, tmp tmtypes.Peer) (*model.Peer, error)
- func SavePeers(chainID string, peers []tmtypes.Peer) error
- func SendCode(mailSmtpServer, mailUser, mailPassword, email string) error
- func SyncLock(key string) bool
- func SyncUnlock(key string) bool
- type Env
- type Genesis
- type Node
- type NodeRoute
Constants ¶
View Source
const VerifyCodeDuration = time.Minute
View Source
const VerifyCodeExpired = time.Minute * 15
Variables ¶
This section is empty.
Functions ¶
func ChainStatus ¶
func ChainStatus(chainID string, cached bool) (*types.ResultStatus, error)
func CreateBlock ¶
func CreateBlock(b *tmctypes.ResultBlock, vs *tmctypes.ResultValidators) error
CreateBlock 创建一个块
func CreateConsensusState ¶
func CreateConsensusState(chainID string, cs *tmctypes.ResultConsensusState) error
func CreateNode ¶
func DeleteNodeByName ¶
func RetrieveOrInsert ¶
func SyncUnlock ¶
Types ¶
type Genesis ¶
type Genesis struct { ID int64 `json:"id"` // id ChainID string `json:"chain_id"` // chain_id GenesisTime time.Time `json:"genesis_time"` // genesis_time Data string `json:"data"` // data CreatedAt time.Time `json:"created_at"` // created_at }
func RetrieveGenesis ¶
type Node ¶
type Node struct { Name string `json:"name"` // name BaseURL string `json:"baseUrl"` // base_url SecretKey string `json:"-"` // secret_key Routers []*NodeRoute `json:"routers"` ChanID string `json:"chanId"` // contains filtered or unexported fields }
func GetNodeByName ¶
func (Node) AppState ¶
func (n Node) AppState(cdc *amino.Codec) (*qbasetypes.GenesisState, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package pkg comments for pkg account account 管理后台相关功能
|
Package pkg comments for pkg account account 管理后台相关功能 |
Package pkg comments for pkg auth auth 请求鉴权
|
Package pkg comments for pkg auth auth 请求鉴权 |
Package pkg comments for pkg block block 块相关数据封装
|
Package pkg comments for pkg block block 块相关数据封装 |
Click to show internal directories.
Click to hide internal directories.