Documentation
¶
Index ¶
- Constants
- Variables
- type ManageAction
- func (*ManageAction) Descriptor() ([]byte, []int)
- func (m *ManageAction) GetModify() *types.ModifyConfig
- func (m *ManageAction) GetTy() int32
- func (m *ManageAction) GetValue() isManageAction_Value
- func (*ManageAction) ProtoMessage()
- func (m *ManageAction) Reset()
- func (m *ManageAction) String() string
- func (m *ManageAction) XXX_DiscardUnknown()
- func (m *ManageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ManageAction) XXX_Merge(src proto.Message)
- func (*ManageAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *ManageAction) XXX_Size() int
- func (m *ManageAction) XXX_Unmarshal(b []byte) error
- type ManageAction_Modify
- type ManageType
- func (m ManageType) ActionName(tx *types.Transaction) string
- func (m ManageType) Amount(tx *types.Transaction) (int64, error)
- func (m ManageType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)
- func (m *ManageType) GetLogMap() map[int64]*types.LogInfo
- func (at *ManageType) GetPayload() types.Message
- func (m ManageType) GetRealToAddr(tx *types.Transaction) string
- func (m ManageType) GetTypeMap() map[string]int32
Constants ¶
View Source
const (
ConfigItemArrayConfig = iota
)
View Source
const (
ManageActionModifyConfig = iota
)
manager action
View Source
const (
TyLogModifyConfig = 410
)
log
Variables ¶
View Source
var ( ErrNoPrivilege = errors.New("ErrNoPrivilege") ErrBadConfigKey = errors.New("ErrBadConfigKey") ErrBadConfigOp = errors.New("ErrBadConfigOp") ErrBadConfigValue = errors.New("ErrBadConfigValue") )
View Source
var (
ManageX = "manage"
)
Functions ¶
This section is empty.
Types ¶
type ManageAction ¶
type ManageAction struct { // Types that are valid to be assigned to Value: // *ManageAction_Modify Value isManageAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,2,opt,name=Ty,proto3" json:"Ty,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ManageAction) Descriptor ¶
func (*ManageAction) Descriptor() ([]byte, []int)
func (*ManageAction) GetModify ¶
func (m *ManageAction) GetModify() *types.ModifyConfig
func (*ManageAction) GetTy ¶
func (m *ManageAction) GetTy() int32
func (*ManageAction) GetValue ¶
func (m *ManageAction) GetValue() isManageAction_Value
func (*ManageAction) ProtoMessage ¶
func (*ManageAction) ProtoMessage()
func (*ManageAction) Reset ¶
func (m *ManageAction) Reset()
func (*ManageAction) String ¶
func (m *ManageAction) String() string
func (*ManageAction) XXX_DiscardUnknown ¶
func (m *ManageAction) XXX_DiscardUnknown()
func (*ManageAction) XXX_Marshal ¶
func (m *ManageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ManageAction) XXX_Merge ¶
func (m *ManageAction) XXX_Merge(src proto.Message)
func (*ManageAction) XXX_OneofFuncs ¶
func (*ManageAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*ManageAction) XXX_Size ¶
func (m *ManageAction) XXX_Size() int
func (*ManageAction) XXX_Unmarshal ¶
func (m *ManageAction) XXX_Unmarshal(b []byte) error
type ManageAction_Modify ¶
type ManageAction_Modify struct {
Modify *types.ModifyConfig `protobuf:"bytes,1,opt,name=modify,proto3,oneof"`
}
type ManageType ¶
type ManageType struct {
types.ExecTypeBase
}
func NewType ¶
func NewType() *ManageType
func (ManageType) ActionName ¶
func (m ManageType) ActionName(tx *types.Transaction) string
func (ManageType) Amount ¶
func (m ManageType) Amount(tx *types.Transaction) (int64, error)
func (ManageType) CreateTx ¶
func (m ManageType) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)
TODO 暂时不修改实现, 先完成结构的重构
func (*ManageType) GetPayload ¶
func (at *ManageType) GetPayload() types.Message
func (ManageType) GetRealToAddr ¶
func (m ManageType) GetRealToAddr(tx *types.Transaction) string
GetRealToAddr 重载该函数主要原因是manage的协议在实现过程中,不同高度的To地址规范不一样
func (ManageType) GetTypeMap ¶
func (m ManageType) GetTypeMap() map[string]int32
Click to show internal directories.
Click to hide internal directories.