Versions in this module Expand all Collapse all v0 v0.5.11 Sep 22, 2020 Changes in this version + func KeyExist(chain uint64, isDb bool, appName, structName string, key []byte) bool type TRuntime + func (r *TRuntime) Close() + func (r *TRuntime) SetMode(mode string) v0.5.6 Jun 17, 2020 Changes in this version + const AppFlagEnd + const AppFlagGzipCompress + const AppFlagImport + const AppFlagPlublc + const AppFlagRun + const EncBinary + const EncGob + const EncJSON + var AppPath = "." + var BuildDir = "." + var Module = "github.com/govm-net/govm" + var NotRebuild bool + var RunDir = "." + func AdminDbSet(owner interface{}, chain uint64, key, value []byte, life uint64) error + func DbExist(owner interface{}, chain uint64, key []byte) bool + func DbGet(owner interface{}, chain uint64, key []byte) ([]byte, uint64) + func Decode(in []byte, out interface{}) int + func Encode(in interface{}) []byte + func GetAppName(owner interface{}) []byte + func GetFullPathOfApp(chain uint64, name []byte) string + func GetHash(in []byte) []byte + func GetNextKey(chain uint64, isDb bool, appName, structName string, preKey []byte) []byte + func GetPackPath(chain uint64, name []byte) string + func GetStructName(owner interface{}) []byte + func GetValue(chain uint64, isDb bool, appName, structName string, key []byte) ([]byte, uint64) + func GobDecode(in []byte, out interface{}) int + func GobEncode(in interface{}) []byte + func JSONDecode(in []byte, out interface{}) int + func JSONEncode(in interface{}) []byte + func LogRead(owner interface{}, chain uint64, key []byte) ([]byte, uint64) + func NewApp(chain uint64, name []byte, code []byte) + func RebuildApp(chain uint64, dir string) error + func RunApp(client *client.Client, flag []byte, chain uint64, mode string, ...) + type EventFilter struct + type TAppInfo struct + AppName string + ChainID uint64 + CorePath string + PackPath string + type TAppNewHead struct + DependNum uint8 + Flag uint8 + LineNum uint32 + Type uint16 + type TAppNewInfo struct + Depends []TDependItem + type TDependItem struct + Alias [4]byte + AppName [32]byte + type TRunParam struct + Chain uint64 + Cost uint64 + Data []byte + Energy uint64 + ErrorInfo string + Flag []byte + User []byte + type TRuntime struct + Chain uint64 + Flag []byte + func NewRuntime(addrType, address string) *TRuntime + func (r *TRuntime) ConsumeEnergy(energy uint64) + func (r *TRuntime) DbGet(owner interface{}, key []byte) ([]byte, uint64) + func (r *TRuntime) DbGetLife(owner interface{}, key []byte) uint64 + func (r *TRuntime) DbSet(owner interface{}, key, value []byte, life uint64) + func (r *TRuntime) Decode(typ uint8, in []byte, out interface{}) int + func (r *TRuntime) Encode(typ uint8, in interface{}) []byte + func (r *TRuntime) Event(user interface{}, event string, param ...[]byte) + func (r *TRuntime) GetAppName(owner interface{}) []byte + func (r *TRuntime) GetHash(in []byte) []byte + func (r *TRuntime) JSONDecode(in []byte, out interface{}) + func (r *TRuntime) JSONEncode(in interface{}) []byte + func (r *TRuntime) LogRead(owner interface{}, chain uint64, key []byte) ([]byte, uint64) + func (r *TRuntime) LogReadLife(owner interface{}, key []byte) uint64 + func (r *TRuntime) LogWrite(owner interface{}, key, value []byte, life uint64) + func (r *TRuntime) NewApp(name []byte, code []byte) + func (r *TRuntime) OtherOps(user interface{}, ops int, data []byte) []byte + func (r *TRuntime) Recover(address, sign, msg []byte) bool + func (r *TRuntime) RunApp(name, user, data []byte, energy, cost uint64) + func (r *TRuntime) SetInfo(chain uint64, flag []byte) + func (r *TRuntime) SetTestMode()