Documentation
¶
Index ¶
- type AccountMapData
- type BaseServer
- type Encourage
- type HandlersFunc
- type PTableAll
- type PosItemMapData
- type PreBlockProposer
- type PreBlockValidatorElect
- type THandler
- func (tHandler *THandler) GetAccountMapData(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetAllCandidateValidatorPool(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetEncourage(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetInitialValidator(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetNextAccountMapData(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetNextAllCandidateValidatorPool(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetNextPosTableData(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetPosTableData(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetPreBlockProposer(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetPreBlockValidators(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) Hello(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) IsRemove(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) IsUpsert(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) RegisterFunc()
- func (tHandler *THandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMapData ¶
type AccountMapData struct {
MapList map[string]*types.AccountMap `json:"accountmaplist"`
}
type BaseServer ¶
func NewBaseServer ¶
func NewBaseServer(strategy *emtTypes.Strategy) *BaseServer
type HandlersFunc ¶
type HandlersFunc func(http.ResponseWriter, *http.Request)
type PosItemMapData ¶
type PreBlockProposer ¶
type PreBlockValidatorElect ¶
type PreBlockValidatorElect struct {
PreBlockValidators []*Validator `json:"preBlockValidators"`
}
type THandler ¶
type THandler struct {
HandlersMap map[string]HandlersFunc
// contains filtered or unexported fields
}
func NewTHandler ¶
func (*THandler) GetAccountMapData ¶
func (tHandler *THandler) GetAccountMapData(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetAllCandidateValidatorPool ¶
func (tHandler *THandler) GetAllCandidateValidatorPool(w http.ResponseWriter, req *http.Request)
func (*THandler) GetEncourage ¶
func (tHandler *THandler) GetEncourage(w http.ResponseWriter, req *http.Request)
func (*THandler) GetInitialValidator ¶
func (tHandler *THandler) GetInitialValidator(w http.ResponseWriter, req *http.Request)
func (*THandler) GetNextAccountMapData ¶
func (tHandler *THandler) GetNextAccountMapData(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetNextAllCandidateValidatorPool ¶
func (tHandler *THandler) GetNextAllCandidateValidatorPool(w http.ResponseWriter, req *http.Request)
func (*THandler) GetNextPosTableData ¶
func (tHandler *THandler) GetNextPosTableData(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetPosTableData ¶
func (tHandler *THandler) GetPosTableData(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetPreBlockProposer ¶
func (tHandler *THandler) GetPreBlockProposer(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetPreBlockValidators ¶
func (tHandler *THandler) GetPreBlockValidators(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) IsRemove ¶
func (tHandler *THandler) IsRemove(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) IsUpsert ¶
func (tHandler *THandler) IsUpsert(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) RegisterFunc ¶
func (tHandler *THandler) RegisterFunc()
type Validator ¶
type Validator struct {
Address []byte `json:"address"`
PubKey abciTypes.PubKey `json:"pubKey"`
Power int64 `json:"power"`
AddressString string `json:"addressString"`
Signer common.Address `json:"signer"`
SignerBalance *big.Int `json:"signerBalance"`
Beneficiary common.Address `json:"beneficiary"`
}
Click to show internal directories.
Click to hide internal directories.