config

package
v0.0.0-...-4619e39 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthChainConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChainConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChainConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLocalConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLocalConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLocalConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLogConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLogConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLogConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPerseusServer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPerseusServer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPerseusServer = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTxFilterConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTxFilterConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTxFilterConfig = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AddrType_name = map[int32]string{
	0: "PERSEUS",
	1: "ETHEREUM",
}
View Source
var AddrType_value = map[string]int32{
	"PERSEUS":  0,
	"ETHEREUM": 1,
}
View Source
var TxFilterType_name = map[int32]string{
	0: "None",
	1: "MilkyWay",
	3: "Map",
	4: "ShardingMilkyWay",
}
View Source
var TxFilterType_value = map[string]int32{
	"None":             0,
	"MilkyWay":         1,
	"Map":              3,
	"ShardingMilkyWay": 4,
}

Functions

This section is empty.

Types

type AddrType

type AddrType int32
const (
	AddrType_PERSEUS  AddrType = 0
	AddrType_ETHEREUM AddrType = 1
)

func (AddrType) EnumDescriptor

func (AddrType) EnumDescriptor() ([]byte, []int)

func (AddrType) String

func (x AddrType) String() string

type BlockConfig

type BlockConfig struct {
	// 是否启用交易时间戳验证
	TxTimestampVerify bool `protobuf:"varint,1,opt,name=tx_timestamp_verify,json=txTimestampVerify,proto3" json:"tx_timestamp_verify,omitempty"`
	// 交易时间戳过期时间(秒)
	TxTimeout uint32 `protobuf:"varint,2,opt,name=tx_timeout,json=txTimeout,proto3" json:"tx_timeout,omitempty"`
	// 一个区块的最大交易数
	BlockTxCapacity uint32 `protobuf:"varint,3,opt,name=block_tx_capacity,json=blockTxCapacity,proto3" json:"block_tx_capacity,omitempty"`
	// 最大块大小,以 MB 为单位
	BlockSize uint32 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	// 块提议间隔,以毫秒为单位
	BlockInterval uint32 `protobuf:"varint,5,opt,name=block_interval,json=blockInterval,proto3" json:"block_interval,omitempty"`
	// 事务参数的最大大小,以 MB 为单位
	TxParameterSize uint32 `protobuf:"varint,6,opt,name=tx_parameter_size,json=txParameterSize,proto3" json:"tx_parameter_size,omitempty"`
}

区块配置

func (*BlockConfig) Descriptor

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

func (*BlockConfig) GetBlockInterval

func (m *BlockConfig) GetBlockInterval() uint32

func (*BlockConfig) GetBlockSize

func (m *BlockConfig) GetBlockSize() uint32

func (*BlockConfig) GetBlockTxCapacity

func (m *BlockConfig) GetBlockTxCapacity() uint32

func (*BlockConfig) GetTxParameterSize

func (m *BlockConfig) GetTxParameterSize() uint32

func (*BlockConfig) GetTxTimeout

func (m *BlockConfig) GetTxTimeout() uint32

func (*BlockConfig) GetTxTimestampVerify

func (m *BlockConfig) GetTxTimestampVerify() bool

func (*BlockConfig) Marshal

func (m *BlockConfig) Marshal() (dAtA []byte, err error)

func (*BlockConfig) MarshalTo

func (m *BlockConfig) MarshalTo(dAtA []byte) (int, error)

func (*BlockConfig) MarshalToSizedBuffer

func (m *BlockConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockConfig) ProtoMessage

func (*BlockConfig) ProtoMessage()

func (*BlockConfig) Reset

func (m *BlockConfig) Reset()

func (*BlockConfig) Size

func (m *BlockConfig) Size() (n int)

func (*BlockConfig) String

func (m *BlockConfig) String() string

func (*BlockConfig) Unmarshal

func (m *BlockConfig) Unmarshal(dAtA []byte) error

func (*BlockConfig) XXX_DiscardUnknown

func (m *BlockConfig) XXX_DiscardUnknown()

func (*BlockConfig) XXX_Marshal

func (m *BlockConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockConfig) XXX_Merge

func (m *BlockConfig) XXX_Merge(src proto.Message)

func (*BlockConfig) XXX_Size

func (m *BlockConfig) XXX_Size() int

func (*BlockConfig) XXX_Unmarshal

func (m *BlockConfig) XXX_Unmarshal(b []byte) error

type ChainConfig

type ChainConfig struct {
	// 区块链标识符
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 区块链版本
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// 成员类型
	AuthType string `protobuf:"bytes,3,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	// 配置顺序
	Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// 加密算法相关配置
	Crypto *CryptoConfig `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"`
	// 区块相关配置
	Block *BlockConfig `protobuf:"bytes,6,opt,name=block,proto3" json:"block,omitempty"`
	// 核心模块相关配置
	Core *CoreConfig `protobuf:"bytes,7,opt,name=core,proto3" json:"core,omitempty"`
	// 共识相关配置
	Consensus *ConsensusConfig `protobuf:"bytes,8,opt,name=consensus,proto3" json:"consensus,omitempty"`
	// 联盟成员的可信根相关配置,联盟初始成员的根信息;
	// 对于公链,无需配置 Key: node_id; value:地址,节点公钥/CA证书
	TrustRoots   []*TrustRootConfig   `protobuf:"bytes,9,rep,name=trust_roots,json=trustRoots,proto3" json:"trust_roots,omitempty"`
	TrustMembers []*TrustMemberConfig `protobuf:"bytes,10,rep,name=trust_members,json=trustMembers,proto3" json:"trust_members,omitempty"`
	// 权限相关配置
	ResourcePolicies []*ResourcePolicy `protobuf:"bytes,11,rep,name=resource_policies,json=resourcePolicies,proto3" json:"resource_policies,omitempty"`
	Contract         *ContractConfig   `protobuf:"bytes,12,opt,name=contract,proto3" json:"contract,omitempty"`
	// 快照模块相关配置
	Snapshot *SnapshotConfig `protobuf:"bytes,13,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// 调度器模块相关配置
	Scheduler *SchedulerConfig `protobuf:"bytes,14,opt,name=scheduler,proto3" json:"scheduler,omitempty"`
	// tx sim 上下文模块相关配置
	Context *ContextConfig `protobuf:"bytes,15,opt,name=context,proto3" json:"context,omitempty"`
	// 出于权限控制目的而禁用的本地合约列表
	DisabledNativeContract []string `` /* 130-byte string literal not displayed */
	// Gas 账户配置
	AccountConfig *GasAccountConfig `protobuf:"bytes,17,opt,name=account_config,json=accountConfig,proto3" json:"account_config,omitempty"`
	// 虚拟机配置
	Vm *Vm `protobuf:"bytes,18,opt,name=vm,proto3" json:"vm,omitempty"`
}

func (*ChainConfig) Descriptor

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

func (*ChainConfig) GetAccountConfig

func (m *ChainConfig) GetAccountConfig() *GasAccountConfig

func (*ChainConfig) GetAuthType

func (m *ChainConfig) GetAuthType() string

func (*ChainConfig) GetBlock

func (m *ChainConfig) GetBlock() *BlockConfig

func (*ChainConfig) GetChainId

func (m *ChainConfig) GetChainId() string

func (*ChainConfig) GetConsensus

func (m *ChainConfig) GetConsensus() *ConsensusConfig

func (*ChainConfig) GetContext

func (m *ChainConfig) GetContext() *ContextConfig

func (*ChainConfig) GetContract

func (m *ChainConfig) GetContract() *ContractConfig

func (*ChainConfig) GetCore

func (m *ChainConfig) GetCore() *CoreConfig

func (*ChainConfig) GetCrypto

func (m *ChainConfig) GetCrypto() *CryptoConfig

func (*ChainConfig) GetDisabledNativeContract

func (m *ChainConfig) GetDisabledNativeContract() []string

func (*ChainConfig) GetResourcePolicies

func (m *ChainConfig) GetResourcePolicies() []*ResourcePolicy

func (*ChainConfig) GetScheduler

func (m *ChainConfig) GetScheduler() *SchedulerConfig

func (*ChainConfig) GetSequence

func (m *ChainConfig) GetSequence() uint64

func (*ChainConfig) GetSnapshot

func (m *ChainConfig) GetSnapshot() *SnapshotConfig

func (*ChainConfig) GetTrustMembers

func (m *ChainConfig) GetTrustMembers() []*TrustMemberConfig

func (*ChainConfig) GetTrustRoots

func (m *ChainConfig) GetTrustRoots() []*TrustRootConfig

func (*ChainConfig) GetVersion

func (m *ChainConfig) GetVersion() string

func (*ChainConfig) GetVm

func (m *ChainConfig) GetVm() *Vm

func (*ChainConfig) Marshal

func (m *ChainConfig) Marshal() (dAtA []byte, err error)

func (*ChainConfig) MarshalTo

func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)

func (*ChainConfig) MarshalToSizedBuffer

func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainConfig) ProtoMessage

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) Reset

func (m *ChainConfig) Reset()

func (*ChainConfig) Size

func (m *ChainConfig) Size() (n int)

func (*ChainConfig) String

func (m *ChainConfig) String() string

func (*ChainConfig) Unmarshal

func (m *ChainConfig) Unmarshal(dAtA []byte) error

func (*ChainConfig) XXX_DiscardUnknown

func (m *ChainConfig) XXX_DiscardUnknown()

func (*ChainConfig) XXX_Marshal

func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainConfig) XXX_Merge

func (m *ChainConfig) XXX_Merge(src proto.Message)

func (*ChainConfig) XXX_Size

func (m *ChainConfig) XXX_Size() int

func (*ChainConfig) XXX_Unmarshal

func (m *ChainConfig) XXX_Unmarshal(b []byte) error

type CheckNewBlockChainConfigRequest

type CheckNewBlockChainConfigRequest struct {
}

请求检查新的块配置

func (*CheckNewBlockChainConfigRequest) Descriptor

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

func (*CheckNewBlockChainConfigRequest) Marshal

func (m *CheckNewBlockChainConfigRequest) Marshal() (dAtA []byte, err error)

func (*CheckNewBlockChainConfigRequest) MarshalTo

func (m *CheckNewBlockChainConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigRequest) MarshalToSizedBuffer

func (m *CheckNewBlockChainConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigRequest) ProtoMessage

func (*CheckNewBlockChainConfigRequest) ProtoMessage()

func (*CheckNewBlockChainConfigRequest) Reset

func (*CheckNewBlockChainConfigRequest) Size

func (m *CheckNewBlockChainConfigRequest) Size() (n int)

func (*CheckNewBlockChainConfigRequest) String

func (*CheckNewBlockChainConfigRequest) Unmarshal

func (m *CheckNewBlockChainConfigRequest) Unmarshal(dAtA []byte) error

func (*CheckNewBlockChainConfigRequest) XXX_DiscardUnknown

func (m *CheckNewBlockChainConfigRequest) XXX_DiscardUnknown()

func (*CheckNewBlockChainConfigRequest) XXX_Marshal

func (m *CheckNewBlockChainConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckNewBlockChainConfigRequest) XXX_Merge

func (m *CheckNewBlockChainConfigRequest) XXX_Merge(src proto.Message)

func (*CheckNewBlockChainConfigRequest) XXX_Size

func (m *CheckNewBlockChainConfigRequest) XXX_Size() int

func (*CheckNewBlockChainConfigRequest) XXX_Unmarshal

func (m *CheckNewBlockChainConfigRequest) XXX_Unmarshal(b []byte) error

type CheckNewBlockChainConfigResponse

type CheckNewBlockChainConfigResponse struct {
	// 0 成功
	// 1 次失败
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

检查新块配置的响应

func (*CheckNewBlockChainConfigResponse) Descriptor

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

func (*CheckNewBlockChainConfigResponse) GetCode

func (*CheckNewBlockChainConfigResponse) GetMessage

func (m *CheckNewBlockChainConfigResponse) GetMessage() string

func (*CheckNewBlockChainConfigResponse) Marshal

func (m *CheckNewBlockChainConfigResponse) Marshal() (dAtA []byte, err error)

func (*CheckNewBlockChainConfigResponse) MarshalTo

func (m *CheckNewBlockChainConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigResponse) MarshalToSizedBuffer

func (m *CheckNewBlockChainConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckNewBlockChainConfigResponse) ProtoMessage

func (*CheckNewBlockChainConfigResponse) ProtoMessage()

func (*CheckNewBlockChainConfigResponse) Reset

func (*CheckNewBlockChainConfigResponse) Size

func (m *CheckNewBlockChainConfigResponse) Size() (n int)

func (*CheckNewBlockChainConfigResponse) String

func (*CheckNewBlockChainConfigResponse) Unmarshal

func (m *CheckNewBlockChainConfigResponse) Unmarshal(dAtA []byte) error

func (*CheckNewBlockChainConfigResponse) XXX_DiscardUnknown

func (m *CheckNewBlockChainConfigResponse) XXX_DiscardUnknown()

func (*CheckNewBlockChainConfigResponse) XXX_Marshal

func (m *CheckNewBlockChainConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckNewBlockChainConfigResponse) XXX_Merge

func (*CheckNewBlockChainConfigResponse) XXX_Size

func (m *CheckNewBlockChainConfigResponse) XXX_Size() int

func (*CheckNewBlockChainConfigResponse) XXX_Unmarshal

func (m *CheckNewBlockChainConfigResponse) XXX_Unmarshal(b []byte) error

type ConfigKeyValue

type ConfigKeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

用于配置的字符串 k-v 对

func (*ConfigKeyValue) Descriptor

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

func (*ConfigKeyValue) GetKey

func (m *ConfigKeyValue) GetKey() string

func (*ConfigKeyValue) GetValue

func (m *ConfigKeyValue) GetValue() string

func (*ConfigKeyValue) Marshal

func (m *ConfigKeyValue) Marshal() (dAtA []byte, err error)

func (*ConfigKeyValue) MarshalTo

func (m *ConfigKeyValue) MarshalTo(dAtA []byte) (int, error)

func (*ConfigKeyValue) MarshalToSizedBuffer

func (m *ConfigKeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConfigKeyValue) ProtoMessage

func (*ConfigKeyValue) ProtoMessage()

func (*ConfigKeyValue) Reset

func (m *ConfigKeyValue) Reset()

func (*ConfigKeyValue) Size

func (m *ConfigKeyValue) Size() (n int)

func (*ConfigKeyValue) String

func (m *ConfigKeyValue) String() string

func (*ConfigKeyValue) Unmarshal

func (m *ConfigKeyValue) Unmarshal(dAtA []byte) error

func (*ConfigKeyValue) XXX_DiscardUnknown

func (m *ConfigKeyValue) XXX_DiscardUnknown()

func (*ConfigKeyValue) XXX_Marshal

func (m *ConfigKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConfigKeyValue) XXX_Merge

func (m *ConfigKeyValue) XXX_Merge(src proto.Message)

func (*ConfigKeyValue) XXX_Size

func (m *ConfigKeyValue) XXX_Size() int

func (*ConfigKeyValue) XXX_Unmarshal

func (m *ConfigKeyValue) XXX_Unmarshal(b []byte) error

type ConsensusConfig

type ConsensusConfig struct {
	// 共识类型
	Type consensus.ConsensusType `protobuf:"varint,1,opt,name=type,proto3,enum=consensus.ConsensusType" json:"type,omitempty"`
	// 节点组织列表
	Nodes []*OrgConfig `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// 扩展领域,记录难度、奖励等共识算法配置
	ExtConfig []*ConfigKeyValue `protobuf:"bytes,3,rep,name=ext_config,json=extConfig,proto3" json:"ext_config,omitempty"`
	// 初始化 DPOS 的配置
	DposConfig []*ConfigKeyValue `protobuf:"bytes,4,rep,name=dpos_config,json=dposConfig,proto3" json:"dpos_config,omitempty"`
}

共识模块相关配置

func (*ConsensusConfig) Descriptor

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

func (*ConsensusConfig) GetDposConfig

func (m *ConsensusConfig) GetDposConfig() []*ConfigKeyValue

func (*ConsensusConfig) GetExtConfig

func (m *ConsensusConfig) GetExtConfig() []*ConfigKeyValue

func (*ConsensusConfig) GetNodes

func (m *ConsensusConfig) GetNodes() []*OrgConfig

func (*ConsensusConfig) GetType

func (*ConsensusConfig) Marshal

func (m *ConsensusConfig) Marshal() (dAtA []byte, err error)

func (*ConsensusConfig) MarshalTo

func (m *ConsensusConfig) MarshalTo(dAtA []byte) (int, error)

func (*ConsensusConfig) MarshalToSizedBuffer

func (m *ConsensusConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusConfig) ProtoMessage

func (*ConsensusConfig) ProtoMessage()

func (*ConsensusConfig) Reset

func (m *ConsensusConfig) Reset()

func (*ConsensusConfig) Size

func (m *ConsensusConfig) Size() (n int)

func (*ConsensusConfig) String

func (m *ConsensusConfig) String() string

func (*ConsensusConfig) Unmarshal

func (m *ConsensusConfig) Unmarshal(dAtA []byte) error

func (*ConsensusConfig) XXX_DiscardUnknown

func (m *ConsensusConfig) XXX_DiscardUnknown()

func (*ConsensusConfig) XXX_Marshal

func (m *ConsensusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConsensusConfig) XXX_Merge

func (m *ConsensusConfig) XXX_Merge(src proto.Message)

func (*ConsensusConfig) XXX_Size

func (m *ConsensusConfig) XXX_Size() int

func (*ConsensusConfig) XXX_Unmarshal

func (m *ConsensusConfig) XXX_Unmarshal(b []byte) error

type ConsensusTurboConfig

type ConsensusTurboConfig struct {
	// 共识消息加速的切换
	ConsensusMessageTurbo bool `` /* 127-byte string literal not displayed */
	// 通过 txIds 从 txpool 获取 tx 的重试时间
	RetryTime uint64 `protobuf:"varint,2,opt,name=retry_time,json=retryTime,proto3" json:"retry_time,omitempty"`
	// 通过 txIds from txpool(ms) 重试获取 tx 的间隔
	RetryInterval uint64 `protobuf:"varint,3,opt,name=retry_interval,json=retryInterval,proto3" json:"retry_interval,omitempty"`
}

共识消息轮换配置

func (*ConsensusTurboConfig) Descriptor

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

func (*ConsensusTurboConfig) GetConsensusMessageTurbo

func (m *ConsensusTurboConfig) GetConsensusMessageTurbo() bool

func (*ConsensusTurboConfig) GetRetryInterval

func (m *ConsensusTurboConfig) GetRetryInterval() uint64

func (*ConsensusTurboConfig) GetRetryTime

func (m *ConsensusTurboConfig) GetRetryTime() uint64

func (*ConsensusTurboConfig) Marshal

func (m *ConsensusTurboConfig) Marshal() (dAtA []byte, err error)

func (*ConsensusTurboConfig) MarshalTo

func (m *ConsensusTurboConfig) MarshalTo(dAtA []byte) (int, error)

func (*ConsensusTurboConfig) MarshalToSizedBuffer

func (m *ConsensusTurboConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConsensusTurboConfig) ProtoMessage

func (*ConsensusTurboConfig) ProtoMessage()

func (*ConsensusTurboConfig) Reset

func (m *ConsensusTurboConfig) Reset()

func (*ConsensusTurboConfig) Size

func (m *ConsensusTurboConfig) Size() (n int)

func (*ConsensusTurboConfig) String

func (m *ConsensusTurboConfig) String() string

func (*ConsensusTurboConfig) Unmarshal

func (m *ConsensusTurboConfig) Unmarshal(dAtA []byte) error

func (*ConsensusTurboConfig) XXX_DiscardUnknown

func (m *ConsensusTurboConfig) XXX_DiscardUnknown()

func (*ConsensusTurboConfig) XXX_Marshal

func (m *ConsensusTurboConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConsensusTurboConfig) XXX_Merge

func (m *ConsensusTurboConfig) XXX_Merge(src proto.Message)

func (*ConsensusTurboConfig) XXX_Size

func (m *ConsensusTurboConfig) XXX_Size() int

func (*ConsensusTurboConfig) XXX_Unmarshal

func (m *ConsensusTurboConfig) XXX_Unmarshal(b []byte) error

type ContextConfig

type ContextConfig struct {
	// 为证据合同
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

TxSimContext 配置

func (*ContextConfig) Descriptor

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

func (*ContextConfig) GetEnableEvidence

func (m *ContextConfig) GetEnableEvidence() bool

func (*ContextConfig) Marshal

func (m *ContextConfig) Marshal() (dAtA []byte, err error)

func (*ContextConfig) MarshalTo

func (m *ContextConfig) MarshalTo(dAtA []byte) (int, error)

func (*ContextConfig) MarshalToSizedBuffer

func (m *ContextConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContextConfig) ProtoMessage

func (*ContextConfig) ProtoMessage()

func (*ContextConfig) Reset

func (m *ContextConfig) Reset()

func (*ContextConfig) Size

func (m *ContextConfig) Size() (n int)

func (*ContextConfig) String

func (m *ContextConfig) String() string

func (*ContextConfig) Unmarshal

func (m *ContextConfig) Unmarshal(dAtA []byte) error

func (*ContextConfig) XXX_DiscardUnknown

func (m *ContextConfig) XXX_DiscardUnknown()

func (*ContextConfig) XXX_Marshal

func (m *ContextConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContextConfig) XXX_Merge

func (m *ContextConfig) XXX_Merge(src proto.Message)

func (*ContextConfig) XXX_Size

func (m *ContextConfig) XXX_Size() int

func (*ContextConfig) XXX_Unmarshal

func (m *ContextConfig) XXX_Unmarshal(b []byte) error

type ContractConfig

type ContractConfig struct {
	EnableSqlSupport bool `protobuf:"varint,1,opt,name=enable_sql_support,json=enableSqlSupport,proto3" json:"enable_sql_support,omitempty"`
	// 出于权限控制目的而禁用的本地合约列表
	DisabledNativeContract []string `` /* 129-byte string literal not displayed */
}

func (*ContractConfig) Descriptor

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

func (*ContractConfig) GetDisabledNativeContract

func (m *ContractConfig) GetDisabledNativeContract() []string

func (*ContractConfig) GetEnableSqlSupport

func (m *ContractConfig) GetEnableSqlSupport() bool

func (*ContractConfig) Marshal

func (m *ContractConfig) Marshal() (dAtA []byte, err error)

func (*ContractConfig) MarshalTo

func (m *ContractConfig) MarshalTo(dAtA []byte) (int, error)

func (*ContractConfig) MarshalToSizedBuffer

func (m *ContractConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ContractConfig) ProtoMessage

func (*ContractConfig) ProtoMessage()

func (*ContractConfig) Reset

func (m *ContractConfig) Reset()

func (*ContractConfig) Size

func (m *ContractConfig) Size() (n int)

func (*ContractConfig) String

func (m *ContractConfig) String() string

func (*ContractConfig) Unmarshal

func (m *ContractConfig) Unmarshal(dAtA []byte) error

func (*ContractConfig) XXX_DiscardUnknown

func (m *ContractConfig) XXX_DiscardUnknown()

func (*ContractConfig) XXX_Marshal

func (m *ContractConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractConfig) XXX_Merge

func (m *ContractConfig) XXX_Merge(src proto.Message)

func (*ContractConfig) XXX_Size

func (m *ContractConfig) XXX_Size() int

func (*ContractConfig) XXX_Unmarshal

func (m *ContractConfig) XXX_Unmarshal(b []byte) error

type CoreConfig

type CoreConfig struct {
	// [0, 60],事务调度器从事务池中获取事务调度的时间
	TxSchedulerTimeout uint64 `protobuf:"varint,1,opt,name=tx_scheduler_timeout,json=txSchedulerTimeout,proto3" json:"tx_scheduler_timeout,omitempty"`
	// [0, 60],交易调度器从区块中获取交易后的验证超时
	TxSchedulerValidateTimeout uint64 `` /* 144-byte string literal not displayed */
	// 共识消息轮换的配置
	ConsensusTurboConfig *ConsensusTurboConfig `protobuf:"bytes,3,opt,name=consensus_turbo_config,json=consensusTurboConfig,proto3" json:"consensus_turbo_config,omitempty"`
	// 启用发件人组,用于有效处理有发件人冲突的交易
	EnableSenderGroup bool `protobuf:"varint,4,opt,name=enable_sender_group,json=enableSenderGroup,proto3" json:"enable_sender_group,omitempty"`
	// 启用冲突位窗口,用于动态调整 tx 执行 goroutine 池的容量
	EnableConflictsBitWindow bool `` /* 138-byte string literal not displayed */
}

核心模块相关配置

func (*CoreConfig) Descriptor

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

func (*CoreConfig) GetConsensusTurboConfig

func (m *CoreConfig) GetConsensusTurboConfig() *ConsensusTurboConfig

func (*CoreConfig) GetEnableConflictsBitWindow

func (m *CoreConfig) GetEnableConflictsBitWindow() bool

func (*CoreConfig) GetEnableSenderGroup

func (m *CoreConfig) GetEnableSenderGroup() bool

func (*CoreConfig) GetTxSchedulerTimeout

func (m *CoreConfig) GetTxSchedulerTimeout() uint64

func (*CoreConfig) GetTxSchedulerValidateTimeout

func (m *CoreConfig) GetTxSchedulerValidateTimeout() uint64

func (*CoreConfig) Marshal

func (m *CoreConfig) Marshal() (dAtA []byte, err error)

func (*CoreConfig) MarshalTo

func (m *CoreConfig) MarshalTo(dAtA []byte) (int, error)

func (*CoreConfig) MarshalToSizedBuffer

func (m *CoreConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CoreConfig) ProtoMessage

func (*CoreConfig) ProtoMessage()

func (*CoreConfig) Reset

func (m *CoreConfig) Reset()

func (*CoreConfig) Size

func (m *CoreConfig) Size() (n int)

func (*CoreConfig) String

func (m *CoreConfig) String() string

func (*CoreConfig) Unmarshal

func (m *CoreConfig) Unmarshal(dAtA []byte) error

func (*CoreConfig) XXX_DiscardUnknown

func (m *CoreConfig) XXX_DiscardUnknown()

func (*CoreConfig) XXX_Marshal

func (m *CoreConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CoreConfig) XXX_Merge

func (m *CoreConfig) XXX_Merge(src proto.Message)

func (*CoreConfig) XXX_Size

func (m *CoreConfig) XXX_Size() int

func (*CoreConfig) XXX_Unmarshal

func (m *CoreConfig) XXX_Unmarshal(b []byte) error

type CryptoConfig

type CryptoConfig struct {
	// 是否启用交易时间戳验证
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

加密配置

func (*CryptoConfig) Descriptor

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

func (*CryptoConfig) GetHash

func (m *CryptoConfig) GetHash() string

func (*CryptoConfig) Marshal

func (m *CryptoConfig) Marshal() (dAtA []byte, err error)

func (*CryptoConfig) MarshalTo

func (m *CryptoConfig) MarshalTo(dAtA []byte) (int, error)

func (*CryptoConfig) MarshalToSizedBuffer

func (m *CryptoConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CryptoConfig) ProtoMessage

func (*CryptoConfig) ProtoMessage()

func (*CryptoConfig) Reset

func (m *CryptoConfig) Reset()

func (*CryptoConfig) Size

func (m *CryptoConfig) Size() (n int)

func (*CryptoConfig) String

func (m *CryptoConfig) String() string

func (*CryptoConfig) Unmarshal

func (m *CryptoConfig) Unmarshal(dAtA []byte) error

func (*CryptoConfig) XXX_DiscardUnknown

func (m *CryptoConfig) XXX_DiscardUnknown()

func (*CryptoConfig) XXX_Marshal

func (m *CryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CryptoConfig) XXX_Merge

func (m *CryptoConfig) XXX_Merge(src proto.Message)

func (*CryptoConfig) XXX_Size

func (m *CryptoConfig) XXX_Size() int

func (*CryptoConfig) XXX_Unmarshal

func (m *CryptoConfig) XXX_Unmarshal(b []byte) error

type DebugConfigRequest

type DebugConfigRequest struct {
	Pairs []*ConfigKeyValue `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"`
}

调试配置请求

func (*DebugConfigRequest) Descriptor

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

func (*DebugConfigRequest) GetPairs

func (m *DebugConfigRequest) GetPairs() []*ConfigKeyValue

func (*DebugConfigRequest) Marshal

func (m *DebugConfigRequest) Marshal() (dAtA []byte, err error)

func (*DebugConfigRequest) MarshalTo

func (m *DebugConfigRequest) MarshalTo(dAtA []byte) (int, error)

func (*DebugConfigRequest) MarshalToSizedBuffer

func (m *DebugConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DebugConfigRequest) ProtoMessage

func (*DebugConfigRequest) ProtoMessage()

func (*DebugConfigRequest) Reset

func (m *DebugConfigRequest) Reset()

func (*DebugConfigRequest) Size

func (m *DebugConfigRequest) Size() (n int)

func (*DebugConfigRequest) String

func (m *DebugConfigRequest) String() string

func (*DebugConfigRequest) Unmarshal

func (m *DebugConfigRequest) Unmarshal(dAtA []byte) error

func (*DebugConfigRequest) XXX_DiscardUnknown

func (m *DebugConfigRequest) XXX_DiscardUnknown()

func (*DebugConfigRequest) XXX_Marshal

func (m *DebugConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugConfigRequest) XXX_Merge

func (m *DebugConfigRequest) XXX_Merge(src proto.Message)

func (*DebugConfigRequest) XXX_Size

func (m *DebugConfigRequest) XXX_Size() int

func (*DebugConfigRequest) XXX_Unmarshal

func (m *DebugConfigRequest) XXX_Unmarshal(b []byte) error

type DebugConfigResponse

type DebugConfigResponse struct {
	// 0 成功
	// 1 次失败
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

用于调试配置的响应

func (*DebugConfigResponse) Descriptor

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

func (*DebugConfigResponse) GetCode

func (m *DebugConfigResponse) GetCode() int32

func (*DebugConfigResponse) GetMessage

func (m *DebugConfigResponse) GetMessage() string

func (*DebugConfigResponse) Marshal

func (m *DebugConfigResponse) Marshal() (dAtA []byte, err error)

func (*DebugConfigResponse) MarshalTo

func (m *DebugConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*DebugConfigResponse) MarshalToSizedBuffer

func (m *DebugConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DebugConfigResponse) ProtoMessage

func (*DebugConfigResponse) ProtoMessage()

func (*DebugConfigResponse) Reset

func (m *DebugConfigResponse) Reset()

func (*DebugConfigResponse) Size

func (m *DebugConfigResponse) Size() (n int)

func (*DebugConfigResponse) String

func (m *DebugConfigResponse) String() string

func (*DebugConfigResponse) Unmarshal

func (m *DebugConfigResponse) Unmarshal(dAtA []byte) error

func (*DebugConfigResponse) XXX_DiscardUnknown

func (m *DebugConfigResponse) XXX_DiscardUnknown()

func (*DebugConfigResponse) XXX_Marshal

func (m *DebugConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugConfigResponse) XXX_Merge

func (m *DebugConfigResponse) XXX_Merge(src proto.Message)

func (*DebugConfigResponse) XXX_Size

func (m *DebugConfigResponse) XXX_Size() int

func (*DebugConfigResponse) XXX_Unmarshal

func (m *DebugConfigResponse) XXX_Unmarshal(b []byte) error

type GasAccountConfig

type GasAccountConfig struct {
	// 对于管理员地址
	GasAdminAddress string `protobuf:"bytes,2,opt,name=gas_admin_address,json=gasAdminAddress,proto3" json:"gas_admin_address,omitempty"`
	// 用于管理气体计数
	GasCount uint32 `protobuf:"varint,3,opt,name=gas_count,json=gasCount,proto3" json:"gas_count,omitempty"`
	// Gas 管理器
	EnableGas bool `protobuf:"varint,4,opt,name=enable_gas,json=enableGas,proto3" json:"enable_gas,omitempty"`
	// 默认情况下,每笔交易的 Gas 值
	DefaultGas uint64 `protobuf:"varint,5,opt,name=default_gas,json=defaultGas,proto3" json:"default_gas,omitempty"`
}

Gas 账户配置

func (*GasAccountConfig) Descriptor

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

func (*GasAccountConfig) GetDefaultGas

func (m *GasAccountConfig) GetDefaultGas() uint64

func (*GasAccountConfig) GetEnableGas

func (m *GasAccountConfig) GetEnableGas() bool

func (*GasAccountConfig) GetGasAdminAddress

func (m *GasAccountConfig) GetGasAdminAddress() string

func (*GasAccountConfig) GetGasCount

func (m *GasAccountConfig) GetGasCount() uint32

func (*GasAccountConfig) Marshal

func (m *GasAccountConfig) Marshal() (dAtA []byte, err error)

func (*GasAccountConfig) MarshalTo

func (m *GasAccountConfig) MarshalTo(dAtA []byte) (int, error)

func (*GasAccountConfig) MarshalToSizedBuffer

func (m *GasAccountConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GasAccountConfig) ProtoMessage

func (*GasAccountConfig) ProtoMessage()

func (*GasAccountConfig) Reset

func (m *GasAccountConfig) Reset()

func (*GasAccountConfig) Size

func (m *GasAccountConfig) Size() (n int)

func (*GasAccountConfig) String

func (m *GasAccountConfig) String() string

func (*GasAccountConfig) Unmarshal

func (m *GasAccountConfig) Unmarshal(dAtA []byte) error

func (*GasAccountConfig) XXX_DiscardUnknown

func (m *GasAccountConfig) XXX_DiscardUnknown()

func (*GasAccountConfig) XXX_Marshal

func (m *GasAccountConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasAccountConfig) XXX_Merge

func (m *GasAccountConfig) XXX_Merge(src proto.Message)

func (*GasAccountConfig) XXX_Size

func (m *GasAccountConfig) XXX_Size() int

func (*GasAccountConfig) XXX_Unmarshal

func (m *GasAccountConfig) XXX_Unmarshal(b []byte) error

type LogLevelsRequest

type LogLevelsRequest struct {
}

请求日志级别

func (*LogLevelsRequest) Descriptor

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

func (*LogLevelsRequest) Marshal

func (m *LogLevelsRequest) Marshal() (dAtA []byte, err error)

func (*LogLevelsRequest) MarshalTo

func (m *LogLevelsRequest) MarshalTo(dAtA []byte) (int, error)

func (*LogLevelsRequest) MarshalToSizedBuffer

func (m *LogLevelsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogLevelsRequest) ProtoMessage

func (*LogLevelsRequest) ProtoMessage()

func (*LogLevelsRequest) Reset

func (m *LogLevelsRequest) Reset()

func (*LogLevelsRequest) Size

func (m *LogLevelsRequest) Size() (n int)

func (*LogLevelsRequest) String

func (m *LogLevelsRequest) String() string

func (*LogLevelsRequest) Unmarshal

func (m *LogLevelsRequest) Unmarshal(dAtA []byte) error

func (*LogLevelsRequest) XXX_DiscardUnknown

func (m *LogLevelsRequest) XXX_DiscardUnknown()

func (*LogLevelsRequest) XXX_Marshal

func (m *LogLevelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogLevelsRequest) XXX_Merge

func (m *LogLevelsRequest) XXX_Merge(src proto.Message)

func (*LogLevelsRequest) XXX_Size

func (m *LogLevelsRequest) XXX_Size() int

func (*LogLevelsRequest) XXX_Unmarshal

func (m *LogLevelsRequest) XXX_Unmarshal(b []byte) error

type LogLevelsResponse

type LogLevelsResponse struct {
	// 0 成功
	// 1 次失败
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 失败信息
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
}

日志级别的响应

func (*LogLevelsResponse) Descriptor

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

func (*LogLevelsResponse) GetCode

func (m *LogLevelsResponse) GetCode() int32

func (*LogLevelsResponse) GetMessage

func (m *LogLevelsResponse) GetMessage() string

func (*LogLevelsResponse) Marshal

func (m *LogLevelsResponse) Marshal() (dAtA []byte, err error)

func (*LogLevelsResponse) MarshalTo

func (m *LogLevelsResponse) MarshalTo(dAtA []byte) (int, error)

func (*LogLevelsResponse) MarshalToSizedBuffer

func (m *LogLevelsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LogLevelsResponse) ProtoMessage

func (*LogLevelsResponse) ProtoMessage()

func (*LogLevelsResponse) Reset

func (m *LogLevelsResponse) Reset()

func (*LogLevelsResponse) Size

func (m *LogLevelsResponse) Size() (n int)

func (*LogLevelsResponse) String

func (m *LogLevelsResponse) String() string

func (*LogLevelsResponse) Unmarshal

func (m *LogLevelsResponse) Unmarshal(dAtA []byte) error

func (*LogLevelsResponse) XXX_DiscardUnknown

func (m *LogLevelsResponse) XXX_DiscardUnknown()

func (*LogLevelsResponse) XXX_Marshal

func (m *LogLevelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogLevelsResponse) XXX_Merge

func (m *LogLevelsResponse) XXX_Merge(src proto.Message)

func (*LogLevelsResponse) XXX_Size

func (m *LogLevelsResponse) XXX_Size() int

func (*LogLevelsResponse) XXX_Unmarshal

func (m *LogLevelsResponse) XXX_Unmarshal(b []byte) error

type OrgConfig

type OrgConfig struct {
	// 组织标识符
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// 组织拥有的地址列表
	// 不推荐使用,替换为 node_id
	Address []string `protobuf:"bytes,2,rep,name=address,proto3" json:"address,omitempty"`
	// 组织拥有的节点 ID 列表
	NodeId []string `protobuf:"bytes,3,rep,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
}

组织相关配置

func (*OrgConfig) Descriptor

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

func (*OrgConfig) GetAddress

func (m *OrgConfig) GetAddress() []string

func (*OrgConfig) GetNodeId

func (m *OrgConfig) GetNodeId() []string

func (*OrgConfig) GetOrgId

func (m *OrgConfig) GetOrgId() string

func (*OrgConfig) Marshal

func (m *OrgConfig) Marshal() (dAtA []byte, err error)

func (*OrgConfig) MarshalTo

func (m *OrgConfig) MarshalTo(dAtA []byte) (int, error)

func (*OrgConfig) MarshalToSizedBuffer

func (m *OrgConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrgConfig) ProtoMessage

func (*OrgConfig) ProtoMessage()

func (*OrgConfig) Reset

func (m *OrgConfig) Reset()

func (*OrgConfig) Size

func (m *OrgConfig) Size() (n int)

func (*OrgConfig) String

func (m *OrgConfig) String() string

func (*OrgConfig) Unmarshal

func (m *OrgConfig) Unmarshal(dAtA []byte) error

func (*OrgConfig) XXX_DiscardUnknown

func (m *OrgConfig) XXX_DiscardUnknown()

func (*OrgConfig) XXX_Marshal

func (m *OrgConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrgConfig) XXX_Merge

func (m *OrgConfig) XXX_Merge(src proto.Message)

func (*OrgConfig) XXX_Size

func (m *OrgConfig) XXX_Size() int

func (*OrgConfig) XXX_Unmarshal

func (m *OrgConfig) XXX_Unmarshal(b []byte) error

type PerseusVersionRequest

type PerseusVersionRequest struct {
}

获取 perseus 版本

func (*PerseusVersionRequest) Descriptor

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

func (*PerseusVersionRequest) Marshal

func (m *PerseusVersionRequest) Marshal() (dAtA []byte, err error)

func (*PerseusVersionRequest) MarshalTo

func (m *PerseusVersionRequest) MarshalTo(dAtA []byte) (int, error)

func (*PerseusVersionRequest) MarshalToSizedBuffer

func (m *PerseusVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerseusVersionRequest) ProtoMessage

func (*PerseusVersionRequest) ProtoMessage()

func (*PerseusVersionRequest) Reset

func (m *PerseusVersionRequest) Reset()

func (*PerseusVersionRequest) Size

func (m *PerseusVersionRequest) Size() (n int)

func (*PerseusVersionRequest) String

func (m *PerseusVersionRequest) String() string

func (*PerseusVersionRequest) Unmarshal

func (m *PerseusVersionRequest) Unmarshal(dAtA []byte) error

func (*PerseusVersionRequest) XXX_DiscardUnknown

func (m *PerseusVersionRequest) XXX_DiscardUnknown()

func (*PerseusVersionRequest) XXX_Marshal

func (m *PerseusVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerseusVersionRequest) XXX_Merge

func (m *PerseusVersionRequest) XXX_Merge(src proto.Message)

func (*PerseusVersionRequest) XXX_Size

func (m *PerseusVersionRequest) XXX_Size() int

func (*PerseusVersionRequest) XXX_Unmarshal

func (m *PerseusVersionRequest) XXX_Unmarshal(b []byte) error

type PerseusVersionResponse

type PerseusVersionResponse struct {
	// 0 成功
	// 1 次失败
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
}

对 perseus 版本的响应

func (*PerseusVersionResponse) Descriptor

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

func (*PerseusVersionResponse) GetCode

func (m *PerseusVersionResponse) GetCode() int32

func (*PerseusVersionResponse) GetMessage

func (m *PerseusVersionResponse) GetMessage() string

func (*PerseusVersionResponse) GetVersion

func (m *PerseusVersionResponse) GetVersion() string

func (*PerseusVersionResponse) Marshal

func (m *PerseusVersionResponse) Marshal() (dAtA []byte, err error)

func (*PerseusVersionResponse) MarshalTo

func (m *PerseusVersionResponse) MarshalTo(dAtA []byte) (int, error)

func (*PerseusVersionResponse) MarshalToSizedBuffer

func (m *PerseusVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PerseusVersionResponse) ProtoMessage

func (*PerseusVersionResponse) ProtoMessage()

func (*PerseusVersionResponse) Reset

func (m *PerseusVersionResponse) Reset()

func (*PerseusVersionResponse) Size

func (m *PerseusVersionResponse) Size() (n int)

func (*PerseusVersionResponse) String

func (m *PerseusVersionResponse) String() string

func (*PerseusVersionResponse) Unmarshal

func (m *PerseusVersionResponse) Unmarshal(dAtA []byte) error

func (*PerseusVersionResponse) XXX_DiscardUnknown

func (m *PerseusVersionResponse) XXX_DiscardUnknown()

func (*PerseusVersionResponse) XXX_Marshal

func (m *PerseusVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PerseusVersionResponse) XXX_Merge

func (m *PerseusVersionResponse) XXX_Merge(src proto.Message)

func (*PerseusVersionResponse) XXX_Size

func (m *PerseusVersionResponse) XXX_Size() int

func (*PerseusVersionResponse) XXX_Unmarshal

func (m *PerseusVersionResponse) XXX_Unmarshal(b []byte) error

type ResourcePolicy

type ResourcePolicy struct {
	// 资源名称
	ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	// 策略(权限)
	Policy *accesscontrol.Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
}

具体权限配置结构

func (*ResourcePolicy) Descriptor

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

func (*ResourcePolicy) GetPolicy

func (m *ResourcePolicy) GetPolicy() *accesscontrol.Policy

func (*ResourcePolicy) GetResourceName

func (m *ResourcePolicy) GetResourceName() string

func (*ResourcePolicy) Marshal

func (m *ResourcePolicy) Marshal() (dAtA []byte, err error)

func (*ResourcePolicy) MarshalTo

func (m *ResourcePolicy) MarshalTo(dAtA []byte) (int, error)

func (*ResourcePolicy) MarshalToSizedBuffer

func (m *ResourcePolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResourcePolicy) ProtoMessage

func (*ResourcePolicy) ProtoMessage()

func (*ResourcePolicy) Reset

func (m *ResourcePolicy) Reset()

func (*ResourcePolicy) Size

func (m *ResourcePolicy) Size() (n int)

func (*ResourcePolicy) String

func (m *ResourcePolicy) String() string

func (*ResourcePolicy) Unmarshal

func (m *ResourcePolicy) Unmarshal(dAtA []byte) error

func (*ResourcePolicy) XXX_DiscardUnknown

func (m *ResourcePolicy) XXX_DiscardUnknown()

func (*ResourcePolicy) XXX_Marshal

func (m *ResourcePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourcePolicy) XXX_Merge

func (m *ResourcePolicy) XXX_Merge(src proto.Message)

func (*ResourcePolicy) XXX_Size

func (m *ResourcePolicy) XXX_Size() int

func (*ResourcePolicy) XXX_Unmarshal

func (m *ResourcePolicy) XXX_Unmarshal(b []byte) error

type SchedulerConfig

type SchedulerConfig struct {
	// 为证据合同
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

调度器配置

func (*SchedulerConfig) Descriptor

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

func (*SchedulerConfig) GetEnableEvidence

func (m *SchedulerConfig) GetEnableEvidence() bool

func (*SchedulerConfig) Marshal

func (m *SchedulerConfig) Marshal() (dAtA []byte, err error)

func (*SchedulerConfig) MarshalTo

func (m *SchedulerConfig) MarshalTo(dAtA []byte) (int, error)

func (*SchedulerConfig) MarshalToSizedBuffer

func (m *SchedulerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SchedulerConfig) ProtoMessage

func (*SchedulerConfig) ProtoMessage()

func (*SchedulerConfig) Reset

func (m *SchedulerConfig) Reset()

func (*SchedulerConfig) Size

func (m *SchedulerConfig) Size() (n int)

func (*SchedulerConfig) String

func (m *SchedulerConfig) String() string

func (*SchedulerConfig) Unmarshal

func (m *SchedulerConfig) Unmarshal(dAtA []byte) error

func (*SchedulerConfig) XXX_DiscardUnknown

func (m *SchedulerConfig) XXX_DiscardUnknown()

func (*SchedulerConfig) XXX_Marshal

func (m *SchedulerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SchedulerConfig) XXX_Merge

func (m *SchedulerConfig) XXX_Merge(src proto.Message)

func (*SchedulerConfig) XXX_Size

func (m *SchedulerConfig) XXX_Size() int

func (*SchedulerConfig) XXX_Unmarshal

func (m *SchedulerConfig) XXX_Unmarshal(b []byte) error

type SnapshotConfig

type SnapshotConfig struct {
	// 为证据合同
	EnableEvidence bool `protobuf:"varint,1,opt,name=enable_evidence,json=enableEvidence,proto3" json:"enable_evidence,omitempty"`
}

快照配置

func (*SnapshotConfig) Descriptor

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

func (*SnapshotConfig) GetEnableEvidence

func (m *SnapshotConfig) GetEnableEvidence() bool

func (*SnapshotConfig) Marshal

func (m *SnapshotConfig) Marshal() (dAtA []byte, err error)

func (*SnapshotConfig) MarshalTo

func (m *SnapshotConfig) MarshalTo(dAtA []byte) (int, error)

func (*SnapshotConfig) MarshalToSizedBuffer

func (m *SnapshotConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SnapshotConfig) ProtoMessage

func (*SnapshotConfig) ProtoMessage()

func (*SnapshotConfig) Reset

func (m *SnapshotConfig) Reset()

func (*SnapshotConfig) Size

func (m *SnapshotConfig) Size() (n int)

func (*SnapshotConfig) String

func (m *SnapshotConfig) String() string

func (*SnapshotConfig) Unmarshal

func (m *SnapshotConfig) Unmarshal(dAtA []byte) error

func (*SnapshotConfig) XXX_DiscardUnknown

func (m *SnapshotConfig) XXX_DiscardUnknown()

func (*SnapshotConfig) XXX_Marshal

func (m *SnapshotConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SnapshotConfig) XXX_Merge

func (m *SnapshotConfig) XXX_Merge(src proto.Message)

func (*SnapshotConfig) XXX_Size

func (m *SnapshotConfig) XXX_Size() int

func (*SnapshotConfig) XXX_Unmarshal

func (m *SnapshotConfig) XXX_Unmarshal(b []byte) error

type TrustMemberConfig

type TrustMemberConfig struct {
	// 成员信息
	MemberInfo string `protobuf:"bytes,1,opt,name=member_info,json=memberInfo,proto3" json:"member_info,omitempty"`
	// 组织标识符
	OrgId  string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	Role   string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
	NodeId string `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
}

func (*TrustMemberConfig) Descriptor

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

func (*TrustMemberConfig) GetMemberInfo

func (m *TrustMemberConfig) GetMemberInfo() string

func (*TrustMemberConfig) GetNodeId

func (m *TrustMemberConfig) GetNodeId() string

func (*TrustMemberConfig) GetOrgId

func (m *TrustMemberConfig) GetOrgId() string

func (*TrustMemberConfig) GetRole

func (m *TrustMemberConfig) GetRole() string

func (*TrustMemberConfig) Marshal

func (m *TrustMemberConfig) Marshal() (dAtA []byte, err error)

func (*TrustMemberConfig) MarshalTo

func (m *TrustMemberConfig) MarshalTo(dAtA []byte) (int, error)

func (*TrustMemberConfig) MarshalToSizedBuffer

func (m *TrustMemberConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrustMemberConfig) ProtoMessage

func (*TrustMemberConfig) ProtoMessage()

func (*TrustMemberConfig) Reset

func (m *TrustMemberConfig) Reset()

func (*TrustMemberConfig) Size

func (m *TrustMemberConfig) Size() (n int)

func (*TrustMemberConfig) String

func (m *TrustMemberConfig) String() string

func (*TrustMemberConfig) Unmarshal

func (m *TrustMemberConfig) Unmarshal(dAtA []byte) error

func (*TrustMemberConfig) XXX_DiscardUnknown

func (m *TrustMemberConfig) XXX_DiscardUnknown()

func (*TrustMemberConfig) XXX_Marshal

func (m *TrustMemberConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrustMemberConfig) XXX_Merge

func (m *TrustMemberConfig) XXX_Merge(src proto.Message)

func (*TrustMemberConfig) XXX_Size

func (m *TrustMemberConfig) XXX_Size() int

func (*TrustMemberConfig) XXX_Unmarshal

func (m *TrustMemberConfig) XXX_Unmarshal(b []byte) error

type TrustRootConfig

type TrustRootConfig struct {
	// 组织标识符
	OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
	// 根证书/公钥
	Root []string `protobuf:"bytes,2,rep,name=root,proto3" json:"root,omitempty"`
}

可信根相关配置

func (*TrustRootConfig) Descriptor

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

func (*TrustRootConfig) GetOrgId

func (m *TrustRootConfig) GetOrgId() string

func (*TrustRootConfig) GetRoot

func (m *TrustRootConfig) GetRoot() []string

func (*TrustRootConfig) Marshal

func (m *TrustRootConfig) Marshal() (dAtA []byte, err error)

func (*TrustRootConfig) MarshalTo

func (m *TrustRootConfig) MarshalTo(dAtA []byte) (int, error)

func (*TrustRootConfig) MarshalToSizedBuffer

func (m *TrustRootConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrustRootConfig) ProtoMessage

func (*TrustRootConfig) ProtoMessage()

func (*TrustRootConfig) Reset

func (m *TrustRootConfig) Reset()

func (*TrustRootConfig) Size

func (m *TrustRootConfig) Size() (n int)

func (*TrustRootConfig) String

func (m *TrustRootConfig) String() string

func (*TrustRootConfig) Unmarshal

func (m *TrustRootConfig) Unmarshal(dAtA []byte) error

func (*TrustRootConfig) XXX_DiscardUnknown

func (m *TrustRootConfig) XXX_DiscardUnknown()

func (*TrustRootConfig) XXX_Marshal

func (m *TrustRootConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrustRootConfig) XXX_Merge

func (m *TrustRootConfig) XXX_Merge(src proto.Message)

func (*TrustRootConfig) XXX_Size

func (m *TrustRootConfig) XXX_Size() int

func (*TrustRootConfig) XXX_Unmarshal

func (m *TrustRootConfig) XXX_Unmarshal(b []byte) error

type TxFilterConfig

type TxFilterConfig struct {
	// 事务过滤器类型
	Type TxFilterType `protobuf:"varint,1,opt,name=type,proto3,enum=config.TxFilterType" json:"type,omitempty"`
	// 天河过滤器配置
	MilkyWay *common.MilkyWayConfig `protobuf:"bytes,2,opt,name=milky_way,json=milkyWay,proto3" json:"milky_way,omitempty"`
	// 天马过滤器分片配置
	ShardingMilkyWay *common.ShardingMilkyWayConfig `protobuf:"bytes,3,opt,name=sharding_milky_way,json=shardingMilkyWay,proto3" json:"sharding_milky_way,omitempty"`
}

func (*TxFilterConfig) Descriptor

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

func (*TxFilterConfig) GetMilkyWay

func (m *TxFilterConfig) GetMilkyWay() *common.MilkyWayConfig

func (*TxFilterConfig) GetShardingMilkyWay

func (m *TxFilterConfig) GetShardingMilkyWay() *common.ShardingMilkyWayConfig

func (*TxFilterConfig) GetType

func (m *TxFilterConfig) GetType() TxFilterType

func (*TxFilterConfig) Marshal

func (m *TxFilterConfig) Marshal() (dAtA []byte, err error)

func (*TxFilterConfig) MarshalTo

func (m *TxFilterConfig) MarshalTo(dAtA []byte) (int, error)

func (*TxFilterConfig) MarshalToSizedBuffer

func (m *TxFilterConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TxFilterConfig) ProtoMessage

func (*TxFilterConfig) ProtoMessage()

func (*TxFilterConfig) Reset

func (m *TxFilterConfig) Reset()

func (*TxFilterConfig) Size

func (m *TxFilterConfig) Size() (n int)

func (*TxFilterConfig) String

func (m *TxFilterConfig) String() string

func (*TxFilterConfig) Unmarshal

func (m *TxFilterConfig) Unmarshal(dAtA []byte) error

func (*TxFilterConfig) XXX_DiscardUnknown

func (m *TxFilterConfig) XXX_DiscardUnknown()

func (*TxFilterConfig) XXX_Marshal

func (m *TxFilterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxFilterConfig) XXX_Merge

func (m *TxFilterConfig) XXX_Merge(src proto.Message)

func (*TxFilterConfig) XXX_Size

func (m *TxFilterConfig) XXX_Size() int

func (*TxFilterConfig) XXX_Unmarshal

func (m *TxFilterConfig) XXX_Unmarshal(b []byte) error

type TxFilterType

type TxFilterType int32
const (
	TxFilterType_None             TxFilterType = 0
	TxFilterType_MilkyWay         TxFilterType = 1
	TxFilterType_Map              TxFilterType = 3
	TxFilterType_ShardingMilkyWay TxFilterType = 4
)

func (TxFilterType) EnumDescriptor

func (TxFilterType) EnumDescriptor() ([]byte, []int)

func (TxFilterType) String

func (x TxFilterType) String() string

type Vm

type Vm struct {
	SupportList []string `protobuf:"bytes,1,rep,name=support_list,json=supportList,proto3" json:"support_list,omitempty"`
	AddrType    AddrType `protobuf:"varint,2,opt,name=addr_type,json=addrType,proto3,enum=config.AddrType" json:"addr_type,omitempty"`
}

func (*Vm) Descriptor

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

func (*Vm) GetAddrType

func (m *Vm) GetAddrType() AddrType

func (*Vm) GetSupportList

func (m *Vm) GetSupportList() []string

func (*Vm) Marshal

func (m *Vm) Marshal() (dAtA []byte, err error)

func (*Vm) MarshalTo

func (m *Vm) MarshalTo(dAtA []byte) (int, error)

func (*Vm) MarshalToSizedBuffer

func (m *Vm) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Vm) ProtoMessage

func (*Vm) ProtoMessage()

func (*Vm) Reset

func (m *Vm) Reset()

func (*Vm) Size

func (m *Vm) Size() (n int)

func (*Vm) String

func (m *Vm) String() string

func (*Vm) Unmarshal

func (m *Vm) Unmarshal(dAtA []byte) error

func (*Vm) XXX_DiscardUnknown

func (m *Vm) XXX_DiscardUnknown()

func (*Vm) XXX_Marshal

func (m *Vm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vm) XXX_Merge

func (m *Vm) XXX_Merge(src proto.Message)

func (*Vm) XXX_Size

func (m *Vm) XXX_Size() int

func (*Vm) XXX_Unmarshal

func (m *Vm) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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