Documentation
¶
Index ¶
- type AccountBean
- 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) GetAuthTable(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) GetPreBlockUpdateValidators(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) GetTxPoolEventSize(w http.ResponseWriter, req *http.Request)
- func (tHandler *THandler) Hello(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 AccountBean ¶
type AccountMapData ¶
type AccountMapData struct {
MapList map[string]AccountBean `json:"accountmaplist"`
}
type BaseServer ¶
func NewBaseServer ¶
func NewBaseServer(strategy *emtTypes.Strategy, backend *ethereum.Backend) *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) GetAuthTable ¶ added in v1.4.5
func (tHandler *THandler) GetAuthTable(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) GetPreBlockUpdateValidators ¶
func (tHandler *THandler) GetPreBlockUpdateValidators(w http.ResponseWriter, req *http.Request)
This function will return the used data structure
func (*THandler) GetTxPoolEventSize ¶
func (tHandler *THandler) GetTxPoolEventSize(w http.ResponseWriter, req *http.Request)
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"`
Slots int64 `json:"slots"`
Beneficiary common.Address `json:"beneficiary"`
BlsKeyString string `json:"blsKeyString"`
}
Click to show internal directories.
Click to hide internal directories.