Documentation ¶
Index ¶
- Constants
- Variables
- func BackgroundLoop() string
- func BlsPublicKey(privKey string) (interface{}, error)
- func BlsSign(privKey, msg string) (interface{}, error)
- func BlsTest() string
- func Emit(jsonText string) string
- func GetAppPath() string
- func GetJson() string
- func GetNetInfos() string
- func GetTime() int64
- func GetWebSocketConnect() string
- func ReadTouchedFile() string
- func RunLoop() string
- func Test() string
- func TouchFile() string
- type AccountReward
- type AccountRewards
- type AggSign
- type EmitRequest
- type EmitResponse
- type EvmEngine
- func (e *EvmEngine) BlsPublicKey(req interface{}) (interface{}, error)
- func (e *EvmEngine) BlsSign(req interface{}) (interface{}, error)
- func (e *EvmEngine) Decrypt(req *EmitRequest) (interface{}, error)
- func (e *EvmEngine) Encrypt(req *EmitRequest) (interface{}, error)
- func (e *EvmEngine) List() (interface{}, error)
- func (e *EvmEngine) ReloadFile() error
- func (e *EvmEngine) SaveFile() error
- func (e *EvmEngine) Setting(req *EmitRequest) error
- func (e *EvmEngine) Start() error
- func (e *EvmEngine) State() string
- func (e *EvmEngine) Stop() error
- type InnerError
- type JSONRPCRequest
- type Setting
- type WebSocketService
Constants ¶
View Source
const ( VERSION = "" EngineStateRunning = "running" EngineStateStopped = "stopped" RequestPath = "" ConfigPath = "evm" LogFile = "vertification_debug_log.txt" )
Variables ¶
View Source
var (
IS_DEBUG = true
)
Functions ¶
func BackgroundLoop ¶
func BackgroundLoop() string
func BlsPublicKey ¶
func GetAppPath ¶
func GetAppPath() string
func GetNetInfos ¶
func GetNetInfos() string
func GetWebSocketConnect ¶
func GetWebSocketConnect() string
func ReadTouchedFile ¶
func ReadTouchedFile() string
Types ¶
type AccountReward ¶
type AccountRewards ¶
type AccountRewards []*AccountReward
func (AccountRewards) Len ¶
func (r AccountRewards) Len() int
func (AccountRewards) Less ¶
func (r AccountRewards) Less(i, j int) bool
func (AccountRewards) Swap ¶
func (r AccountRewards) Swap(i, j int)
type EmitRequest ¶
type EmitRequest struct { Typ string `json:"type"` Val interface{} `json:"val"` }
type EmitResponse ¶
type EvmEngine ¶
type EvmEngine struct { Account string `json:"account"` AppBasePath string `json:"app_base_path"` EngineState string `json:"state"` BlockChan chan string `json:"-"` PrivKey string `json:"priv_key"` ServerUri string `json:"server_uri"` LogLevel string `json:"log_level"` // contains filtered or unexported fields }
func (*EvmEngine) BlsPublicKey ¶
func (*EvmEngine) Decrypt ¶
func (e *EvmEngine) Decrypt(req *EmitRequest) (interface{}, error)
func (*EvmEngine) Encrypt ¶
func (e *EvmEngine) Encrypt(req *EmitRequest) (interface{}, error)
func (*EvmEngine) ReloadFile ¶
func (*EvmEngine) Setting ¶
func (e *EvmEngine) Setting(req *EmitRequest) error
{ "type":"setting", "val":{ "app_base_path":"/sd/0/evm/", "account":"abcdef1234" } }
type InnerError ¶
func (InnerError) Error ¶
func (i InnerError) Error() string
type JSONRPCRequest ¶
type WebSocketService ¶
type WebSocketService struct {
// contains filtered or unexported fields
}
func NewWebSocketService ¶
func NewWebSocketService(addr, acc string) (*WebSocketService, error)
Click to show internal directories.
Click to hide internal directories.