types

package
Version: v1.65.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 5 Imported by: 9

Documentation

Index

Constants

View Source
const (
	NormActionPut = 1
)

norm action

Variables

View Source
var NormX = "norm"

NormX name

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

Types

type Norm

type Norm struct {
	NormId     []byte `protobuf:"bytes,1,opt,name=normId,proto3" json:"normId,omitempty"`
	CreateTime int64  `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
	Key        []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value      []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Norm) Descriptor deprecated

func (*Norm) Descriptor() ([]byte, []int)

Deprecated: Use Norm.ProtoReflect.Descriptor instead.

func (*Norm) GetCreateTime

func (x *Norm) GetCreateTime() int64

func (*Norm) GetKey

func (x *Norm) GetKey() []byte

func (*Norm) GetNormId

func (x *Norm) GetNormId() []byte

func (*Norm) GetValue

func (x *Norm) GetValue() []byte

func (*Norm) ProtoMessage

func (*Norm) ProtoMessage()

func (*Norm) ProtoReflect added in v1.65.3

func (x *Norm) ProtoReflect() protoreflect.Message

func (*Norm) Reset

func (x *Norm) Reset()

func (*Norm) String

func (x *Norm) String() string

type NormAction

type NormAction struct {

	// Types that are assignable to Value:
	//	*NormAction_Nput
	Value isNormAction_Value `protobuf_oneof:"value"`
	Ty    int32              `protobuf:"varint,5,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

func (*NormAction) Descriptor deprecated

func (*NormAction) Descriptor() ([]byte, []int)

Deprecated: Use NormAction.ProtoReflect.Descriptor instead.

func (*NormAction) GetNput

func (x *NormAction) GetNput() *NormPut

func (*NormAction) GetTy

func (x *NormAction) GetTy() int32

func (*NormAction) GetValue

func (m *NormAction) GetValue() isNormAction_Value

func (*NormAction) ProtoMessage

func (*NormAction) ProtoMessage()

func (*NormAction) ProtoReflect added in v1.65.3

func (x *NormAction) ProtoReflect() protoreflect.Message

func (*NormAction) Reset

func (x *NormAction) Reset()

func (*NormAction) String

func (x *NormAction) String() string

type NormAction_Nput

type NormAction_Nput struct {
	Nput *NormPut `protobuf:"bytes,1,opt,name=nput,proto3,oneof"`
}

type NormGetKey

type NormGetKey struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*NormGetKey) Descriptor deprecated

func (*NormGetKey) Descriptor() ([]byte, []int)

Deprecated: Use NormGetKey.ProtoReflect.Descriptor instead.

func (*NormGetKey) GetKey

func (x *NormGetKey) GetKey() []byte

func (*NormGetKey) ProtoMessage

func (*NormGetKey) ProtoMessage()

func (*NormGetKey) ProtoReflect added in v1.65.3

func (x *NormGetKey) ProtoReflect() protoreflect.Message

func (*NormGetKey) Reset

func (x *NormGetKey) Reset()

func (*NormGetKey) String

func (x *NormGetKey) String() string

type NormPut

type NormPut struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*NormPut) Descriptor deprecated

func (*NormPut) Descriptor() ([]byte, []int)

Deprecated: Use NormPut.ProtoReflect.Descriptor instead.

func (*NormPut) GetKey

func (x *NormPut) GetKey() []byte

func (*NormPut) GetValue

func (x *NormPut) GetValue() []byte

func (*NormPut) ProtoMessage

func (*NormPut) ProtoMessage()

func (*NormPut) ProtoReflect added in v1.65.3

func (x *NormPut) ProtoReflect() protoreflect.Message

func (*NormPut) Reset

func (x *NormPut) Reset()

func (*NormPut) String

func (x *NormPut) String() string

type NormType

type NormType struct {
	types.ExecTypeBase
}

NormType def

func NewType

func NewType(cfg *types.Chain33Config) *NormType

NewType method

func (*NormType) GetLogMap

func (norm *NormType) GetLogMap() map[int64]*types.LogInfo

GetLogMap method

func (*NormType) GetName

func (norm *NormType) GetName() string

GetName 获取执行器名称

func (*NormType) GetPayload

func (norm *NormType) GetPayload() types.Message

GetPayload method

func (*NormType) GetTypeMap

func (norm *NormType) GetTypeMap() map[string]int32

GetTypeMap method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL