types

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package types 管理插件相关的定义

Index

Constants

View Source
const (
	ConfigItemArrayConfig = iota
)

ConfigItemArrayConfig config Item

View Source
const (
	ManageActionModifyConfig = iota
)

ManageActionModifyConfig manager action

View Source
const (
	TyLogModifyConfig = 410
)

TyLogModifyConfig log

Variables

View Source
var (
	// ErrNoPrivilege defines a error string errnoprivilege
	ErrNoPrivilege = errors.New("ErrNoPrivilege")
	// ErrBadConfigKey defines a err string errbadconfigkey
	ErrBadConfigKey = errors.New("ErrBadConfigKey")
	// ErrBadConfigOp defines a err string errbadconfigop
	ErrBadConfigOp = errors.New("ErrBadConfigOp")
	// ErrBadConfigValue defines a err string errbadconfigvalue
	ErrBadConfigValue = errors.New("ErrBadConfigValue")
)
View Source
var (
	// ManageX defines a global string
	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
}

ManageType defines managetype

func NewType

func NewType() *ManageType

NewType new a managetype object

func (ManageType) ActionName

func (m ManageType) ActionName(tx *types.Transaction) string

ActionName return action a string name

func (ManageType) Amount

func (m ManageType) Amount(tx *types.Transaction) (int64, error)

Amount amount

func (*ManageType) GetLogMap

func (m *ManageType) GetLogMap() map[int64]*types.LogInfo

GetLogMap get log for map

func (*ManageType) GetName

func (m *ManageType) GetName() string

GetName reset name

func (*ManageType) GetPayload

func (m *ManageType) GetPayload() types.Message

GetPayload return manageaction

func (ManageType) GetRealToAddr

func (m ManageType) GetRealToAddr(tx *types.Transaction) string

GetRealToAddr main reason for overloading this function is because of the manage protocol during implementation, to address specification varies fron height to height

func (ManageType) GetTypeMap

func (m ManageType) GetTypeMap() map[string]int32

GetTypeMap return typename of actionname

Jump to

Keyboard shortcuts

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