config

package
v0.0.0-...-2b16687 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Code_name = map[int32]string{
	0: "Success",
	1: "Fail",
}
View Source
var Code_value = map[string]int32{
	"Success": 0,
	"Fail":    1,
}

Functions

func RegisterConfigServer

func RegisterConfigServer(s *grpc.Server, srv ConfigServer)

Types

type CertificateAuthority

type CertificateAuthority struct {
	// https://ca.org1.example.com:7054
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// name of the CA
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// ca 指定组织用户名,如:Admin/User0
	Username             string     `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Registrar            *Registrar `protobuf:"bytes,5,opt,name=registrar,proto3" json:"registrar,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*CertificateAuthority) Descriptor

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

func (*CertificateAuthority) GetName

func (m *CertificateAuthority) GetName() string

func (*CertificateAuthority) GetRegistrar

func (m *CertificateAuthority) GetRegistrar() *Registrar

func (*CertificateAuthority) GetUrl

func (m *CertificateAuthority) GetUrl() string

func (*CertificateAuthority) GetUsername

func (m *CertificateAuthority) GetUsername() string

func (*CertificateAuthority) ProtoMessage

func (*CertificateAuthority) ProtoMessage()

func (*CertificateAuthority) Reset

func (m *CertificateAuthority) Reset()

func (*CertificateAuthority) String

func (m *CertificateAuthority) String() string

func (*CertificateAuthority) XXX_DiscardUnknown

func (m *CertificateAuthority) XXX_DiscardUnknown()

func (*CertificateAuthority) XXX_Marshal

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

func (*CertificateAuthority) XXX_Merge

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

func (*CertificateAuthority) XXX_Size

func (m *CertificateAuthority) XXX_Size() int

func (*CertificateAuthority) XXX_Unmarshal

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

type Channel

type Channel struct {
	// 已知加入该通道的peer节点名称集合,如[peer0, peer1]
	PeerNames []string `protobuf:"bytes,1,rep,name=peerNames,proto3" json:"peerNames,omitempty"`
	// 可选参数,应用程序可以使用这些选项来执行通道操作,如检索通道配置等。
	Policies             *Policy  `protobuf:"bytes,2,opt,name=Policies,proto3" json:"Policies,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

联盟通道信息

func (*Channel) Descriptor

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

func (*Channel) GetPeerNames

func (m *Channel) GetPeerNames() []string

func (*Channel) GetPolicies

func (m *Channel) GetPolicies() *Policy

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) Reset

func (m *Channel) Reset()

func (*Channel) String

func (m *Channel) String() string

func (*Channel) XXX_DiscardUnknown

func (m *Channel) XXX_DiscardUnknown()

func (*Channel) XXX_Marshal

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

func (*Channel) XXX_Merge

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

func (*Channel) XXX_Size

func (m *Channel) XXX_Size() int

func (*Channel) XXX_Unmarshal

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

type Client

type Client struct {
	// 日志级别,debug、info、warn、error等
	Logging *ClientLogging `protobuf:"bytes,2,opt,name=logging,proto3" json:"logging,omitempty"`
	// 节点超时的全局配置,如果省略此部分,则将使用缺省值
	Peer *ClientPeer `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"`
	// 事件服务超时的全局配置,如果省略此部分,则将使用缺省值
	EventService *ClientEventService `protobuf:"bytes,4,opt,name=eventService,proto3" json:"eventService,omitempty"`
	// orderer超时的全局配置,如果省略此部分,则将使用缺省值
	Order *ClientOrder `protobuf:"bytes,5,opt,name=order,proto3" json:"order,omitempty"`
	// 超时的全局配置,如果省略此部分,则将使用缺省值
	Global *ClientGlobal `protobuf:"bytes,6,opt,name=global,proto3" json:"global,omitempty"`
	// 客户端的BCCSP配置
	BCCSP                *ClientBCCSP `protobuf:"bytes,9,opt,name=BCCSP,proto3" json:"BCCSP,omitempty"`
	Tls                  bool         `protobuf:"varint,10,opt,name=tls,proto3" json:"tls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Client go sdk 使用的客户端

func (*Client) Descriptor

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

func (*Client) GetBCCSP

func (m *Client) GetBCCSP() *ClientBCCSP

func (*Client) GetEventService

func (m *Client) GetEventService() *ClientEventService

func (*Client) GetGlobal

func (m *Client) GetGlobal() *ClientGlobal

func (*Client) GetLogging

func (m *Client) GetLogging() *ClientLogging

func (*Client) GetOrder

func (m *Client) GetOrder() *ClientOrder

func (*Client) GetPeer

func (m *Client) GetPeer() *ClientPeer

func (*Client) GetTls

func (m *Client) GetTls() bool

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) Reset

func (m *Client) Reset()

func (*Client) String

func (m *Client) String() string

func (*Client) XXX_DiscardUnknown

func (m *Client) XXX_DiscardUnknown()

func (*Client) XXX_Marshal

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

func (*Client) XXX_Merge

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

func (*Client) XXX_Size

func (m *Client) XXX_Size() int

func (*Client) XXX_Unmarshal

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

type ClientBCCSP

type ClientBCCSP struct {
	Security             *ClientBCCSPSecurity `protobuf:"bytes,1,opt,name=security,proto3" json:"security,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ClientBCCSP) Descriptor

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

func (*ClientBCCSP) GetSecurity

func (m *ClientBCCSP) GetSecurity() *ClientBCCSPSecurity

func (*ClientBCCSP) ProtoMessage

func (*ClientBCCSP) ProtoMessage()

func (*ClientBCCSP) Reset

func (m *ClientBCCSP) Reset()

func (*ClientBCCSP) String

func (m *ClientBCCSP) String() string

func (*ClientBCCSP) XXX_DiscardUnknown

func (m *ClientBCCSP) XXX_DiscardUnknown()

func (*ClientBCCSP) XXX_Marshal

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

func (*ClientBCCSP) XXX_Merge

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

func (*ClientBCCSP) XXX_Size

func (m *ClientBCCSP) XXX_Size() int

func (*ClientBCCSP) XXX_Unmarshal

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

type ClientBCCSPSecurity

type ClientBCCSPSecurity struct {
	Enabled              bool                        `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Default              *ClientBCCSPSecurityDefault `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
	HashAlgorithm        string                      `protobuf:"bytes,3,opt,name=hashAlgorithm,proto3" json:"hashAlgorithm,omitempty"`
	SoftVerify           bool                        `protobuf:"varint,4,opt,name=softVerify,proto3" json:"softVerify,omitempty"`
	Level                int32                       `protobuf:"varint,5,opt,name=level,proto3" json:"level,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*ClientBCCSPSecurity) Descriptor

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

func (*ClientBCCSPSecurity) GetDefault

func (*ClientBCCSPSecurity) GetEnabled

func (m *ClientBCCSPSecurity) GetEnabled() bool

func (*ClientBCCSPSecurity) GetHashAlgorithm

func (m *ClientBCCSPSecurity) GetHashAlgorithm() string

func (*ClientBCCSPSecurity) GetLevel

func (m *ClientBCCSPSecurity) GetLevel() int32

func (*ClientBCCSPSecurity) GetSoftVerify

func (m *ClientBCCSPSecurity) GetSoftVerify() bool

func (*ClientBCCSPSecurity) ProtoMessage

func (*ClientBCCSPSecurity) ProtoMessage()

func (*ClientBCCSPSecurity) Reset

func (m *ClientBCCSPSecurity) Reset()

func (*ClientBCCSPSecurity) String

func (m *ClientBCCSPSecurity) String() string

func (*ClientBCCSPSecurity) XXX_DiscardUnknown

func (m *ClientBCCSPSecurity) XXX_DiscardUnknown()

func (*ClientBCCSPSecurity) XXX_Marshal

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

func (*ClientBCCSPSecurity) XXX_Merge

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

func (*ClientBCCSPSecurity) XXX_Size

func (m *ClientBCCSPSecurity) XXX_Size() int

func (*ClientBCCSPSecurity) XXX_Unmarshal

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

type ClientBCCSPSecurityDefault

type ClientBCCSPSecurityDefault struct {
	Provider             string   `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientBCCSPSecurityDefault) Descriptor

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

func (*ClientBCCSPSecurityDefault) GetProvider

func (m *ClientBCCSPSecurityDefault) GetProvider() string

func (*ClientBCCSPSecurityDefault) ProtoMessage

func (*ClientBCCSPSecurityDefault) ProtoMessage()

func (*ClientBCCSPSecurityDefault) Reset

func (m *ClientBCCSPSecurityDefault) Reset()

func (*ClientBCCSPSecurityDefault) String

func (m *ClientBCCSPSecurityDefault) String() string

func (*ClientBCCSPSecurityDefault) XXX_DiscardUnknown

func (m *ClientBCCSPSecurityDefault) XXX_DiscardUnknown()

func (*ClientBCCSPSecurityDefault) XXX_Marshal

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

func (*ClientBCCSPSecurityDefault) XXX_Merge

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

func (*ClientBCCSPSecurityDefault) XXX_Size

func (m *ClientBCCSPSecurityDefault) XXX_Size() int

func (*ClientBCCSPSecurityDefault) XXX_Unmarshal

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

type ClientCredentialStoreCryptoStore

type ClientCredentialStoreCryptoStore struct {
	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientCredentialStoreCryptoStore) Descriptor

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

func (*ClientCredentialStoreCryptoStore) GetPath

func (*ClientCredentialStoreCryptoStore) ProtoMessage

func (*ClientCredentialStoreCryptoStore) ProtoMessage()

func (*ClientCredentialStoreCryptoStore) Reset

func (*ClientCredentialStoreCryptoStore) String

func (*ClientCredentialStoreCryptoStore) XXX_DiscardUnknown

func (m *ClientCredentialStoreCryptoStore) XXX_DiscardUnknown()

func (*ClientCredentialStoreCryptoStore) XXX_Marshal

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

func (*ClientCredentialStoreCryptoStore) XXX_Merge

func (*ClientCredentialStoreCryptoStore) XXX_Size

func (m *ClientCredentialStoreCryptoStore) XXX_Size() int

func (*ClientCredentialStoreCryptoStore) XXX_Unmarshal

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

type ClientEventService

type ClientEventService struct {
	Timeout              *ClientEventServiceTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*ClientEventService) Descriptor

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

func (*ClientEventService) GetTimeout

func (*ClientEventService) ProtoMessage

func (*ClientEventService) ProtoMessage()

func (*ClientEventService) Reset

func (m *ClientEventService) Reset()

func (*ClientEventService) String

func (m *ClientEventService) String() string

func (*ClientEventService) XXX_DiscardUnknown

func (m *ClientEventService) XXX_DiscardUnknown()

func (*ClientEventService) XXX_Marshal

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

func (*ClientEventService) XXX_Merge

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

func (*ClientEventService) XXX_Size

func (m *ClientEventService) XXX_Size() int

func (*ClientEventService) XXX_Unmarshal

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

type ClientEventServiceTimeout

type ClientEventServiceTimeout struct {
	RegistrationResponse string   `protobuf:"bytes,1,opt,name=registrationResponse,proto3" json:"registrationResponse,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientEventServiceTimeout) Descriptor

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

func (*ClientEventServiceTimeout) GetRegistrationResponse

func (m *ClientEventServiceTimeout) GetRegistrationResponse() string

func (*ClientEventServiceTimeout) ProtoMessage

func (*ClientEventServiceTimeout) ProtoMessage()

func (*ClientEventServiceTimeout) Reset

func (m *ClientEventServiceTimeout) Reset()

func (*ClientEventServiceTimeout) String

func (m *ClientEventServiceTimeout) String() string

func (*ClientEventServiceTimeout) XXX_DiscardUnknown

func (m *ClientEventServiceTimeout) XXX_DiscardUnknown()

func (*ClientEventServiceTimeout) XXX_Marshal

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

func (*ClientEventServiceTimeout) XXX_Merge

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

func (*ClientEventServiceTimeout) XXX_Size

func (m *ClientEventServiceTimeout) XXX_Size() int

func (*ClientEventServiceTimeout) XXX_Unmarshal

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

type ClientGlobal

type ClientGlobal struct {
	Timeout              *ClientGlobalTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Cache                *ClientGlobalCache   `protobuf:"bytes,2,opt,name=cache,proto3" json:"cache,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ClientGlobal) Descriptor

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

func (*ClientGlobal) GetCache

func (m *ClientGlobal) GetCache() *ClientGlobalCache

func (*ClientGlobal) GetTimeout

func (m *ClientGlobal) GetTimeout() *ClientGlobalTimeout

func (*ClientGlobal) ProtoMessage

func (*ClientGlobal) ProtoMessage()

func (*ClientGlobal) Reset

func (m *ClientGlobal) Reset()

func (*ClientGlobal) String

func (m *ClientGlobal) String() string

func (*ClientGlobal) XXX_DiscardUnknown

func (m *ClientGlobal) XXX_DiscardUnknown()

func (*ClientGlobal) XXX_Marshal

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

func (*ClientGlobal) XXX_Merge

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

func (*ClientGlobal) XXX_Size

func (m *ClientGlobal) XXX_Size() int

func (*ClientGlobal) XXX_Unmarshal

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

type ClientGlobalCache

type ClientGlobalCache struct {
	ConnectionIdle       string   `protobuf:"bytes,1,opt,name=connectionIdle,proto3" json:"connectionIdle,omitempty"`
	EventServiceIdle     string   `protobuf:"bytes,2,opt,name=eventServiceIdle,proto3" json:"eventServiceIdle,omitempty"`
	ChannelConfig        string   `protobuf:"bytes,3,opt,name=channelConfig,proto3" json:"channelConfig,omitempty"`
	ChannelMembership    string   `protobuf:"bytes,4,opt,name=channelMembership,proto3" json:"channelMembership,omitempty"`
	Discovery            string   `protobuf:"bytes,5,opt,name=discovery,proto3" json:"discovery,omitempty"`
	Selection            string   `protobuf:"bytes,6,opt,name=selection,proto3" json:"selection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientGlobalCache) Descriptor

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

func (*ClientGlobalCache) GetChannelConfig

func (m *ClientGlobalCache) GetChannelConfig() string

func (*ClientGlobalCache) GetChannelMembership

func (m *ClientGlobalCache) GetChannelMembership() string

func (*ClientGlobalCache) GetConnectionIdle

func (m *ClientGlobalCache) GetConnectionIdle() string

func (*ClientGlobalCache) GetDiscovery

func (m *ClientGlobalCache) GetDiscovery() string

func (*ClientGlobalCache) GetEventServiceIdle

func (m *ClientGlobalCache) GetEventServiceIdle() string

func (*ClientGlobalCache) GetSelection

func (m *ClientGlobalCache) GetSelection() string

func (*ClientGlobalCache) ProtoMessage

func (*ClientGlobalCache) ProtoMessage()

func (*ClientGlobalCache) Reset

func (m *ClientGlobalCache) Reset()

func (*ClientGlobalCache) String

func (m *ClientGlobalCache) String() string

func (*ClientGlobalCache) XXX_DiscardUnknown

func (m *ClientGlobalCache) XXX_DiscardUnknown()

func (*ClientGlobalCache) XXX_Marshal

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

func (*ClientGlobalCache) XXX_Merge

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

func (*ClientGlobalCache) XXX_Size

func (m *ClientGlobalCache) XXX_Size() int

func (*ClientGlobalCache) XXX_Unmarshal

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

type ClientGlobalTimeout

type ClientGlobalTimeout struct {
	Query                string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Execute              string   `protobuf:"bytes,2,opt,name=execute,proto3" json:"execute,omitempty"`
	Resmgmt              string   `protobuf:"bytes,3,opt,name=resmgmt,proto3" json:"resmgmt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientGlobalTimeout) Descriptor

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

func (*ClientGlobalTimeout) GetExecute

func (m *ClientGlobalTimeout) GetExecute() string

func (*ClientGlobalTimeout) GetQuery

func (m *ClientGlobalTimeout) GetQuery() string

func (*ClientGlobalTimeout) GetResmgmt

func (m *ClientGlobalTimeout) GetResmgmt() string

func (*ClientGlobalTimeout) ProtoMessage

func (*ClientGlobalTimeout) ProtoMessage()

func (*ClientGlobalTimeout) Reset

func (m *ClientGlobalTimeout) Reset()

func (*ClientGlobalTimeout) String

func (m *ClientGlobalTimeout) String() string

func (*ClientGlobalTimeout) XXX_DiscardUnknown

func (m *ClientGlobalTimeout) XXX_DiscardUnknown()

func (*ClientGlobalTimeout) XXX_Marshal

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

func (*ClientGlobalTimeout) XXX_Merge

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

func (*ClientGlobalTimeout) XXX_Size

func (m *ClientGlobalTimeout) XXX_Size() int

func (*ClientGlobalTimeout) XXX_Unmarshal

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

type ClientLogging

type ClientLogging struct {
	// 默认info
	Level                string   `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

客户端日志设置对象

func (*ClientLogging) Descriptor

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

func (*ClientLogging) GetLevel

func (m *ClientLogging) GetLevel() string

func (*ClientLogging) ProtoMessage

func (*ClientLogging) ProtoMessage()

func (*ClientLogging) Reset

func (m *ClientLogging) Reset()

func (*ClientLogging) String

func (m *ClientLogging) String() string

func (*ClientLogging) XXX_DiscardUnknown

func (m *ClientLogging) XXX_DiscardUnknown()

func (*ClientLogging) XXX_Marshal

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

func (*ClientLogging) XXX_Merge

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

func (*ClientLogging) XXX_Size

func (m *ClientLogging) XXX_Size() int

func (*ClientLogging) XXX_Unmarshal

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

type ClientOrder

type ClientOrder struct {
	Timeout              *ClientOrderTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*ClientOrder) Descriptor

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

func (*ClientOrder) GetTimeout

func (m *ClientOrder) GetTimeout() *ClientOrderTimeout

func (*ClientOrder) ProtoMessage

func (*ClientOrder) ProtoMessage()

func (*ClientOrder) Reset

func (m *ClientOrder) Reset()

func (*ClientOrder) String

func (m *ClientOrder) String() string

func (*ClientOrder) XXX_DiscardUnknown

func (m *ClientOrder) XXX_DiscardUnknown()

func (*ClientOrder) XXX_Marshal

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

func (*ClientOrder) XXX_Merge

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

func (*ClientOrder) XXX_Size

func (m *ClientOrder) XXX_Size() int

func (*ClientOrder) XXX_Unmarshal

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

type ClientOrderTimeout

type ClientOrderTimeout struct {
	Connection           string   `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	Response             string   `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientOrderTimeout) Descriptor

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

func (*ClientOrderTimeout) GetConnection

func (m *ClientOrderTimeout) GetConnection() string

func (*ClientOrderTimeout) GetResponse

func (m *ClientOrderTimeout) GetResponse() string

func (*ClientOrderTimeout) ProtoMessage

func (*ClientOrderTimeout) ProtoMessage()

func (*ClientOrderTimeout) Reset

func (m *ClientOrderTimeout) Reset()

func (*ClientOrderTimeout) String

func (m *ClientOrderTimeout) String() string

func (*ClientOrderTimeout) XXX_DiscardUnknown

func (m *ClientOrderTimeout) XXX_DiscardUnknown()

func (*ClientOrderTimeout) XXX_Marshal

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

func (*ClientOrderTimeout) XXX_Merge

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

func (*ClientOrderTimeout) XXX_Size

func (m *ClientOrderTimeout) XXX_Size() int

func (*ClientOrderTimeout) XXX_Unmarshal

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

type ClientPeer

type ClientPeer struct {
	Timeout              *ClientPeerTimeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*ClientPeer) Descriptor

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

func (*ClientPeer) GetTimeout

func (m *ClientPeer) GetTimeout() *ClientPeerTimeout

func (*ClientPeer) ProtoMessage

func (*ClientPeer) ProtoMessage()

func (*ClientPeer) Reset

func (m *ClientPeer) Reset()

func (*ClientPeer) String

func (m *ClientPeer) String() string

func (*ClientPeer) XXX_DiscardUnknown

func (m *ClientPeer) XXX_DiscardUnknown()

func (*ClientPeer) XXX_Marshal

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

func (*ClientPeer) XXX_Merge

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

func (*ClientPeer) XXX_Size

func (m *ClientPeer) XXX_Size() int

func (*ClientPeer) XXX_Unmarshal

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

type ClientPeerTimeout

type ClientPeerTimeout struct {
	Connection           string                      `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	Response             string                      `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	Discovery            *ClientPeerTimeoutDiscovery `protobuf:"bytes,3,opt,name=discovery,proto3" json:"discovery,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*ClientPeerTimeout) Descriptor

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

func (*ClientPeerTimeout) GetConnection

func (m *ClientPeerTimeout) GetConnection() string

func (*ClientPeerTimeout) GetDiscovery

func (m *ClientPeerTimeout) GetDiscovery() *ClientPeerTimeoutDiscovery

func (*ClientPeerTimeout) GetResponse

func (m *ClientPeerTimeout) GetResponse() string

func (*ClientPeerTimeout) ProtoMessage

func (*ClientPeerTimeout) ProtoMessage()

func (*ClientPeerTimeout) Reset

func (m *ClientPeerTimeout) Reset()

func (*ClientPeerTimeout) String

func (m *ClientPeerTimeout) String() string

func (*ClientPeerTimeout) XXX_DiscardUnknown

func (m *ClientPeerTimeout) XXX_DiscardUnknown()

func (*ClientPeerTimeout) XXX_Marshal

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

func (*ClientPeerTimeout) XXX_Merge

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

func (*ClientPeerTimeout) XXX_Size

func (m *ClientPeerTimeout) XXX_Size() int

func (*ClientPeerTimeout) XXX_Unmarshal

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

type ClientPeerTimeoutDiscovery

type ClientPeerTimeoutDiscovery struct {
	// GreyListExpiry 发现服务失效列表筛选器的有效期。
	//
	// 通道客户端将列出脱机的失效节点名单,防止在后续重试中重新选择它们。
	//
	// 这个间隔将定义一个节点被灰列出的时间
	GreyListExpiry       string   `protobuf:"bytes,1,opt,name=greyListExpiry,proto3" json:"greyListExpiry,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ClientPeerTimeoutDiscovery) Descriptor

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

func (*ClientPeerTimeoutDiscovery) GetGreyListExpiry

func (m *ClientPeerTimeoutDiscovery) GetGreyListExpiry() string

func (*ClientPeerTimeoutDiscovery) ProtoMessage

func (*ClientPeerTimeoutDiscovery) ProtoMessage()

func (*ClientPeerTimeoutDiscovery) Reset

func (m *ClientPeerTimeoutDiscovery) Reset()

func (*ClientPeerTimeoutDiscovery) String

func (m *ClientPeerTimeoutDiscovery) String() string

func (*ClientPeerTimeoutDiscovery) XXX_DiscardUnknown

func (m *ClientPeerTimeoutDiscovery) XXX_DiscardUnknown()

func (*ClientPeerTimeoutDiscovery) XXX_Marshal

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

func (*ClientPeerTimeoutDiscovery) XXX_Merge

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

func (*ClientPeerTimeoutDiscovery) XXX_Size

func (m *ClientPeerTimeoutDiscovery) XXX_Size() int

func (*ClientPeerTimeoutDiscovery) XXX_Unmarshal

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

type Code

type Code int32
const (
	Code_Success Code = 0
	Code_Fail    Code = 1
)

func (Code) EnumDescriptor

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

func (Code) String

func (x Code) String() string

type CommonRetryOpts

type CommonRetryOpts struct {
	// 可选参数,number of retry attempts
	Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// 可选参数,第一次重试尝试的回退间隔
	InitialBackoff string `protobuf:"bytes,2,opt,name=initialBackoff,proto3" json:"initialBackoff,omitempty"`
	// 可选参数,任何重试尝试的最大回退间隔
	MaxBackoff string `protobuf:"bytes,3,opt,name=maxBackoff,proto3" json:"maxBackoff,omitempty"`
	// 可选参数,该因子使初始回退期呈指数递增
	BackoffFactor        float32  `protobuf:"fixed32,4,opt,name=backoffFactor,proto3" json:"backoffFactor,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

可选参数,查询配置块的重试选项

func (*CommonRetryOpts) Descriptor

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

func (*CommonRetryOpts) GetAttempts

func (m *CommonRetryOpts) GetAttempts() int32

func (*CommonRetryOpts) GetBackoffFactor

func (m *CommonRetryOpts) GetBackoffFactor() float32

func (*CommonRetryOpts) GetInitialBackoff

func (m *CommonRetryOpts) GetInitialBackoff() string

func (*CommonRetryOpts) GetMaxBackoff

func (m *CommonRetryOpts) GetMaxBackoff() string

func (*CommonRetryOpts) ProtoMessage

func (*CommonRetryOpts) ProtoMessage()

func (*CommonRetryOpts) Reset

func (m *CommonRetryOpts) Reset()

func (*CommonRetryOpts) String

func (m *CommonRetryOpts) String() string

func (*CommonRetryOpts) XXX_DiscardUnknown

func (m *CommonRetryOpts) XXX_DiscardUnknown()

func (*CommonRetryOpts) XXX_Marshal

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

func (*CommonRetryOpts) XXX_Merge

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

func (*CommonRetryOpts) XXX_Size

func (m *CommonRetryOpts) XXX_Size() int

func (*CommonRetryOpts) XXX_Unmarshal

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

type ConfigClient

type ConfigClient interface {
	// 设置新的组织配置信息,用于访问fabric网络
	ConfigSet(ctx context.Context, in *ReqConfigSet, opts ...grpc.CallOption) (*RespConfigSet, error)
	// 获取组织配置信息详情
	ConfigObtain(ctx context.Context, in *ReqConfigObtain, opts ...grpc.CallOption) (*RespConfigObtain, error)
	// 列出已有组织信息集合
	ConfigList(ctx context.Context, in *ReqConfigList, opts ...grpc.CallOption) (*RespConfigList, error)
	// 删除指定组织配置信息
	ConfigDelete(ctx context.Context, in *ReqConfigDelete, opts ...grpc.CallOption) (*RespConfigDelete, error)
}

ConfigClient is the client API for Config service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConfigClient

func NewConfigClient(cc *grpc.ClientConn) ConfigClient

type ConfigServer

type ConfigServer interface {
	// 设置新的组织配置信息,用于访问fabric网络
	ConfigSet(context.Context, *ReqConfigSet) (*RespConfigSet, error)
	// 获取组织配置信息详情
	ConfigObtain(context.Context, *ReqConfigObtain) (*RespConfigObtain, error)
	// 列出已有组织信息集合
	ConfigList(context.Context, *ReqConfigList) (*RespConfigList, error)
	// 删除指定组织配置信息
	ConfigDelete(context.Context, *ReqConfigDelete) (*RespConfigDelete, error)
}

ConfigServer is the server API for Config service.

type Crypto

type Crypto struct {
	// 节点/用户私钥
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// 节点/用户证书
	Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"`
	// 节点/用户tls私钥
	TlsKey []byte `protobuf:"bytes,3,opt,name=tlsKey,proto3" json:"tlsKey,omitempty"`
	// 节点/用户tls证书
	TlsCert              []byte   `protobuf:"bytes,4,opt,name=tlsCert,proto3" json:"tlsCert,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

节点/用户密钥信息

func (*Crypto) Descriptor

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

func (*Crypto) GetCert

func (m *Crypto) GetCert() []byte

func (*Crypto) GetKey

func (m *Crypto) GetKey() []byte

func (*Crypto) GetTlsCert

func (m *Crypto) GetTlsCert() []byte

func (*Crypto) GetTlsKey

func (m *Crypto) GetTlsKey() []byte

func (*Crypto) ProtoMessage

func (*Crypto) ProtoMessage()

func (*Crypto) Reset

func (m *Crypto) Reset()

func (*Crypto) String

func (m *Crypto) String() string

func (*Crypto) XXX_DiscardUnknown

func (m *Crypto) XXX_DiscardUnknown()

func (*Crypto) XXX_Marshal

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

func (*Crypto) XXX_Merge

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

func (*Crypto) XXX_Size

func (m *Crypto) XXX_Size() int

func (*Crypto) XXX_Unmarshal

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

type Discovery

type Discovery struct {
	// 可选参数,发现信息将检索这些随机目标的数量
	MaxTargets int32 `protobuf:"varint,1,opt,name=maxTargets,proto3" json:"maxTargets,omitempty"`
	// 可选参数,查询配置块的重试选项
	RetryOpts            *CommonRetryOpts `protobuf:"bytes,2,opt,name=retryOpts,proto3" json:"retryOpts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

可选参数,检索发现信息的选项

func (*Discovery) Descriptor

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

func (*Discovery) GetMaxTargets

func (m *Discovery) GetMaxTargets() int32

func (*Discovery) GetRetryOpts

func (m *Discovery) GetRetryOpts() *CommonRetryOpts

func (*Discovery) ProtoMessage

func (*Discovery) ProtoMessage()

func (*Discovery) Reset

func (m *Discovery) Reset()

func (*Discovery) String

func (m *Discovery) String() string

func (*Discovery) XXX_DiscardUnknown

func (m *Discovery) XXX_DiscardUnknown()

func (*Discovery) XXX_Marshal

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

func (*Discovery) XXX_Merge

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

func (*Discovery) XXX_Size

func (m *Discovery) XXX_Size() int

func (*Discovery) XXX_Unmarshal

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

type EventService

type EventService struct {
	// 可选参数
	//
	// PreferOrg:
	// 根据块高度滞后阈值确定哪些对等点是合适的,尽管它们更适用当前组织中的对等点(只要它们的块高度高于配置的阈值)。如果当前组织中的对等点都不合适,则选择另一个组织中的对等点
	//
	// MinBlockHeight:
	// 根据块高度滞后阈值选择最佳的对等点。所有对等点的最大块高度被确定,那些块高度低于最大高度但高于规定的“滞后”阈值的对等点被负载均衡。不考虑其他节点
	//
	// Balanced:
	// 使用配置的平衡器选择对等点
	ResolverStrategy string `protobuf:"bytes,1,opt,name=resolverStrategy,proto3" json:"resolverStrategy,omitempty"`
	// 可选参数
	//
	// 当选择一个对等点连接到可能的值时使用的负载均衡[Random (default), RoundRobin]
	Balancer string `protobuf:"bytes,2,opt,name=balancer,proto3" json:"balancer,omitempty"`
	// 可选参数
	//
	// 设置块高度滞后阈值。此值用于选择要连接的对等点。如果一个节点落后于最新的节点超过给定的块数,那么它将被排除在选择之外
	// 注意,此参数仅适用于minBlockHeightResolverMode设置为ResolveByThreshold时
	// 默认值:5
	BlockHeightLagThreshold int64 `protobuf:"varint,3,opt,name=blockHeightLagThreshold,proto3" json:"blockHeightLagThreshold,omitempty"`
	// 可选参数
	//
	// reconnectBlockHeightLagThreshold—如果对等方的块高度低于指定的块数,则事件客户机将断开与对等方的连接,并重新连接到性能更好的对等方
	//
	// 注意,此参数仅适用于peerMonitor设置为Enabled(默认)的情况
	//
	// 默认值:10
	//
	// 注意:设置此值过低可能会导致事件客户端过于频繁地断开/重新连接,从而影响性能
	ReconnectBlockHeightLagThreshold int64 `protobuf:"varint,4,opt,name=reconnectBlockHeightLagThreshold,proto3" json:"reconnectBlockHeightLagThreshold,omitempty"`
	// 可选参数
	//
	// peerMonitorPeriod是监视连接的对等点以查看事件客户端是否应该断开连接并重新连接到另一个对等点的时间段
	//
	// 默认:0(禁用)用于平衡冲突解决策略;优先级和MinBlockHeight策略的5s
	PeerMonitorPeriod    string   `protobuf:"bytes,5,opt,name=peerMonitorPeriod,proto3" json:"peerMonitorPeriod,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

可选参数,事件服务的选项

func (*EventService) Descriptor

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

func (*EventService) GetBalancer

func (m *EventService) GetBalancer() string

func (*EventService) GetBlockHeightLagThreshold

func (m *EventService) GetBlockHeightLagThreshold() int64

func (*EventService) GetPeerMonitorPeriod

func (m *EventService) GetPeerMonitorPeriod() string

func (*EventService) GetReconnectBlockHeightLagThreshold

func (m *EventService) GetReconnectBlockHeightLagThreshold() int64

func (*EventService) GetResolverStrategy

func (m *EventService) GetResolverStrategy() string

func (*EventService) ProtoMessage

func (*EventService) ProtoMessage()

func (*EventService) Reset

func (m *EventService) Reset()

func (*EventService) String

func (m *EventService) String() string

func (*EventService) XXX_DiscardUnknown

func (m *EventService) XXX_DiscardUnknown()

func (*EventService) XXX_Marshal

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

func (*EventService) XXX_Merge

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

func (*EventService) XXX_Size

func (m *EventService) XXX_Size() int

func (*EventService) XXX_Unmarshal

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

type GRPCOptions

type GRPCOptions struct {
	// orderer.example.com || peer0.org1.example.com
	SslTargetNameOverride string `protobuf:"bytes,1,opt,name=sslTargetNameOverride,proto3" json:"sslTargetNameOverride,omitempty"`
	// keepAliveTime
	//
	// 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭
	//
	// 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数
	KeepAliveTime string `protobuf:"bytes,2,opt,name=keepAliveTime,proto3" json:"keepAliveTime,omitempty"`
	// keepAliveTimeout
	//
	// 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭
	//
	// 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数
	KeepAliveTimeout string `protobuf:"bytes,3,opt,name=keepAliveTimeout,proto3" json:"keepAliveTimeout,omitempty"`
	// keepAlivePermit
	//
	// 这些参数应该与服务器上的keepalive策略协调设置,因为不兼容的设置可能导致连接关闭
	//
	// 当“keep-alive-time”的持续时间设置为0或更少时,将禁用keep alive客户端参数
	KeepAlivePermit bool `protobuf:"varint,4,opt,name=keepAlivePermit,proto3" json:"keepAlivePermit,omitempty"`
	FailFast        bool `protobuf:"varint,5,opt,name=failFast,proto3" json:"failFast,omitempty"`
	// 如果地址没有定义协议,则考虑允许不安全;如果为true,则考虑grpc或其他grpc
	AllowInsecure        bool     `protobuf:"varint,6,opt,name=allowInsecure,proto3" json:"allowInsecure,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GRPCOptions) Descriptor

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

func (*GRPCOptions) GetAllowInsecure

func (m *GRPCOptions) GetAllowInsecure() bool

func (*GRPCOptions) GetFailFast

func (m *GRPCOptions) GetFailFast() bool

func (*GRPCOptions) GetKeepAlivePermit

func (m *GRPCOptions) GetKeepAlivePermit() bool

func (*GRPCOptions) GetKeepAliveTime

func (m *GRPCOptions) GetKeepAliveTime() string

func (*GRPCOptions) GetKeepAliveTimeout

func (m *GRPCOptions) GetKeepAliveTimeout() string

func (*GRPCOptions) GetSslTargetNameOverride

func (m *GRPCOptions) GetSslTargetNameOverride() string

func (*GRPCOptions) ProtoMessage

func (*GRPCOptions) ProtoMessage()

func (*GRPCOptions) Reset

func (m *GRPCOptions) Reset()

func (*GRPCOptions) String

func (m *GRPCOptions) String() string

func (*GRPCOptions) XXX_DiscardUnknown

func (m *GRPCOptions) XXX_DiscardUnknown()

func (*GRPCOptions) XXX_Marshal

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

func (*GRPCOptions) XXX_Merge

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

func (*GRPCOptions) XXX_Size

func (m *GRPCOptions) XXX_Size() int

func (*GRPCOptions) XXX_Unmarshal

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

type Node

type Node struct {
	// orderer名称,如:orderer0
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// grpcs://127.0.0.1:7050
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// 这些是由gRPC库定义的标准属性,它们将按原样传递给gRPC客户端构造函数
	GrpcOptions *GRPCOptions `protobuf:"bytes,6,opt,name=grpcOptions,proto3" json:"grpcOptions,omitempty"`
	// 节点密钥信息
	Crypto               *Crypto  `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

发送事务和通道创建/更新请求

func (*Node) Descriptor

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

func (*Node) GetCrypto

func (m *Node) GetCrypto() *Crypto

func (*Node) GetGrpcOptions

func (m *Node) GetGrpcOptions() *GRPCOptions

func (*Node) GetName

func (m *Node) GetName() string

func (*Node) GetUrl

func (m *Node) GetUrl() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

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

func (*Node) XXX_Merge

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

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

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

type Orderer

type Orderer struct {
	// 排序根域名,并不一定要与联盟根域名相同,如:order.com
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// 这个应用程序实例属于某个组织,值必须是在“组织”下定义的组织的名称,如:Order或league-order
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 可选参数,组织在创世中的ID,如:OrderMSP,默认${name}MSP
	MspID string `protobuf:"bytes,4,opt,name=mspID,proto3" json:"mspID,omitempty"`
	// 组织当前使用用户,如:Admin/User0
	Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
	// 用户信息
	User *User `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"`
	// 组织可访问orderer集合
	Nodes []*Node `protobuf:"bytes,8,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// 组织根证书
	CertBytes []byte `protobuf:"bytes,9,opt,name=certBytes,proto3" json:"certBytes,omitempty"`
	// 组织tls根证书
	TlsCertBytes         []byte   `protobuf:"bytes,10,opt,name=tlsCertBytes,proto3" json:"tlsCertBytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

排序节点信息

func (*Orderer) Descriptor

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

func (*Orderer) GetCertBytes

func (m *Orderer) GetCertBytes() []byte

func (*Orderer) GetDomain

func (m *Orderer) GetDomain() string

func (*Orderer) GetMspID

func (m *Orderer) GetMspID() string

func (*Orderer) GetName

func (m *Orderer) GetName() string

func (*Orderer) GetNodes

func (m *Orderer) GetNodes() []*Node

func (*Orderer) GetTlsCertBytes

func (m *Orderer) GetTlsCertBytes() []byte

func (*Orderer) GetUser

func (m *Orderer) GetUser() *User

func (*Orderer) GetUsername

func (m *Orderer) GetUsername() string

func (*Orderer) ProtoMessage

func (*Orderer) ProtoMessage()

func (*Orderer) Reset

func (m *Orderer) Reset()

func (*Orderer) String

func (m *Orderer) String() string

func (*Orderer) XXX_DiscardUnknown

func (m *Orderer) XXX_DiscardUnknown()

func (*Orderer) XXX_Marshal

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

func (*Orderer) XXX_Merge

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

func (*Orderer) XXX_Size

func (m *Orderer) XXX_Size() int

func (*Orderer) XXX_Unmarshal

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

type OrdererTLSCACerts

type OrdererTLSCACerts struct {
	// 证书位置绝对路径
	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OrdererTLSCACerts) Descriptor

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

func (*OrdererTLSCACerts) GetPath

func (m *OrdererTLSCACerts) GetPath() string

func (*OrdererTLSCACerts) ProtoMessage

func (*OrdererTLSCACerts) ProtoMessage()

func (*OrdererTLSCACerts) Reset

func (m *OrdererTLSCACerts) Reset()

func (*OrdererTLSCACerts) String

func (m *OrdererTLSCACerts) String() string

func (*OrdererTLSCACerts) XXX_DiscardUnknown

func (m *OrdererTLSCACerts) XXX_DiscardUnknown()

func (*OrdererTLSCACerts) XXX_Marshal

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

func (*OrdererTLSCACerts) XXX_Merge

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

func (*OrdererTLSCACerts) XXX_Size

func (m *OrdererTLSCACerts) XXX_Size() int

func (*OrdererTLSCACerts) XXX_Unmarshal

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

type Org

type Org struct {
	// 必填参数,预测或确认该值,组织根域名,并不一定要与联盟根域名相同,如:org.com
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// 必填参数,预测或确认该值,这个应用程序实例属于某个组织,值必须是在“组织”下定义的组织的名称,如:Org1或league-org1
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 可选参数,组织在创世中的ID,如:Org1MSP,默认${name}MSP
	MspID string `protobuf:"bytes,4,opt,name=mspID,proto3" json:"mspID,omitempty"`
	// 必填参数,预测或确认该值,组织当前使用用户,如:Admin/User0
	Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
	// 组织下节点集合
	Peers []*Peer `protobuf:"bytes,6,rep,name=peers,proto3" json:"peers,omitempty"`
	// 组织下用户集合
	Users []*User `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"`
	// 组织下fabric-ca集合
	Cas []*CertificateAuthority `protobuf:"bytes,8,rep,name=cas,proto3" json:"cas,omitempty"`
	// 组织根证书
	CertBytes []byte `protobuf:"bytes,9,opt,name=certBytes,proto3" json:"certBytes,omitempty"`
	// 组织tls根证书
	TlsCertBytes         []byte   `protobuf:"bytes,10,opt,name=tlsCertBytes,proto3" json:"tlsCertBytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

组织节点信息

func (*Org) Descriptor

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

func (*Org) GetCas

func (m *Org) GetCas() []*CertificateAuthority

func (*Org) GetCertBytes

func (m *Org) GetCertBytes() []byte

func (*Org) GetDomain

func (m *Org) GetDomain() string

func (*Org) GetMspID

func (m *Org) GetMspID() string

func (*Org) GetName

func (m *Org) GetName() string

func (*Org) GetPeers

func (m *Org) GetPeers() []*Peer

func (*Org) GetTlsCertBytes

func (m *Org) GetTlsCertBytes() []byte

func (*Org) GetUsername

func (m *Org) GetUsername() string

func (*Org) GetUsers

func (m *Org) GetUsers() []*User

func (*Org) ProtoMessage

func (*Org) ProtoMessage()

func (*Org) Reset

func (m *Org) Reset()

func (*Org) String

func (m *Org) String() string

func (*Org) XXX_DiscardUnknown

func (m *Org) XXX_DiscardUnknown()

func (*Org) XXX_Marshal

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

func (*Org) XXX_Merge

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

func (*Org) XXX_Size

func (m *Org) XXX_Size() int

func (*Org) XXX_Unmarshal

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

type OrgConfig

type OrgConfig struct {
	// 联盟根域名,如:example.com
	LeagueDomain string `protobuf:"bytes,1,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"`
	// 组织域名,如org.com
	OrgDomain            string   `protobuf:"bytes,2,opt,name=orgDomain,proto3" json:"orgDomain,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*OrgConfig) Descriptor

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

func (*OrgConfig) GetLeagueDomain

func (m *OrgConfig) GetLeagueDomain() string

func (*OrgConfig) GetOrgDomain

func (m *OrgConfig) GetOrgDomain() string

func (*OrgConfig) ProtoMessage

func (*OrgConfig) ProtoMessage()

func (*OrgConfig) Reset

func (m *OrgConfig) Reset()

func (*OrgConfig) String

func (m *OrgConfig) String() string

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 Peer

type Peer struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 此URL用于发送背书和查询请求,grpc://peer0.org1.example.com:7051
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// eventUrl只在使用eventhub时才需要(默认是交付服务),grpc://peer0.org1.example.com:7053
	EventUrl string `protobuf:"bytes,3,opt,name=eventUrl,proto3" json:"eventUrl,omitempty"`
	// 这些是由gRPC库定义的标准属性,它们将按原样传递给gRPC客户端构造函数
	GrpcOptions *GRPCOptions `protobuf:"bytes,4,opt,name=grpcOptions,proto3" json:"grpcOptions,omitempty"`
	// 节点密钥信息
	Crypto *Crypto `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"`
	// 可选参数
	//
	// 是否会向该节点发送交易以供其背书,节点必须安装chaincode。应用程序也可以使用这个属性来决定发送chaincode安装请求的节点。
	//
	// 默认值:true
	EndorsingPeer bool `protobuf:"varint,6,opt,name=endorsingPeer,proto3" json:"endorsingPeer,omitempty"`
	// 可选参数
	//
	// 这个节点是否可被发送查询建议,节点必须安装chaincode。应用程序也可以使用这个属性来决定发送chaincode安装请求的节点。
	//
	// 默认值:true
	ChaincodeQuery bool `protobuf:"varint,7,opt,name=chaincodeQuery,proto3" json:"chaincodeQuery,omitempty"`
	// 可选参数
	//
	// 这个节点是否可发送不需要链码的查询建议,如queryBlock()、queryTransaction()等。
	//
	// 默认值:true
	LedgerQuery bool `protobuf:"varint,8,opt,name=ledgerQuery,proto3" json:"ledgerQuery,omitempty"`
	// 可选参数
	//
	// 这个节点是否是SDK侦听器注册的目标,所有的对等点都可以产生事件,但应用程序通常只需要连接一个来监听事件。
	//
	// 默认值:true
	EventSource          bool     `protobuf:"varint,9,opt,name=eventSource,proto3" json:"eventSource,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

节点,用于发送各种请求的节点列表,包括背书、查询和事件侦听器注册

func (*Peer) Descriptor

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

func (*Peer) GetChaincodeQuery

func (m *Peer) GetChaincodeQuery() bool

func (*Peer) GetCrypto

func (m *Peer) GetCrypto() *Crypto

func (*Peer) GetEndorsingPeer

func (m *Peer) GetEndorsingPeer() bool

func (*Peer) GetEventSource

func (m *Peer) GetEventSource() bool

func (*Peer) GetEventUrl

func (m *Peer) GetEventUrl() string

func (*Peer) GetGrpcOptions

func (m *Peer) GetGrpcOptions() *GRPCOptions

func (*Peer) GetLedgerQuery

func (m *Peer) GetLedgerQuery() bool

func (*Peer) GetName

func (m *Peer) GetName() string

func (*Peer) GetUrl

func (m *Peer) GetUrl() string

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

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

func (*Peer) XXX_Merge

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

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

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

type Policy

type Policy struct {
	// 可选参数,用于检索通道配置块的选项
	QueryChannelConfig *QueryChannelConfig `protobuf:"bytes,1,opt,name=queryChannelConfig,proto3" json:"queryChannelConfig,omitempty"`
	// 可选参数,检索发现信息的选项
	Discovery *Discovery `protobuf:"bytes,2,opt,name=discovery,proto3" json:"discovery,omitempty"`
	// 可选参数,事件服务的选项
	EventService         *EventService `protobuf:"bytes,3,opt,name=eventService,proto3" json:"eventService,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

可选参数,应用程序可以使用这些选项来执行通道操作,如检索通道配置等

func (*Policy) Descriptor

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

func (*Policy) GetDiscovery

func (m *Policy) GetDiscovery() *Discovery

func (*Policy) GetEventService

func (m *Policy) GetEventService() *EventService

func (*Policy) GetQueryChannelConfig

func (m *Policy) GetQueryChannelConfig() *QueryChannelConfig

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

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

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type QueryChannelConfig

type QueryChannelConfig struct {
	// 可选参数,最小成功响应数(来自目标/节点)
	MinResponses int32 `protobuf:"varint,1,opt,name=minResponses,proto3" json:"minResponses,omitempty"`
	// 可选参数,通道配置将为这些数目的随机目标检索
	MaxTargets int32 `protobuf:"varint,2,opt,name=maxTargets,proto3" json:"maxTargets,omitempty"`
	// 可选参数,查询配置块的重试选项
	RetryOpts            *CommonRetryOpts `protobuf:"bytes,3,opt,name=retryOpts,proto3" json:"retryOpts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

可选参数,用于检索通道配置块的选项

func (*QueryChannelConfig) Descriptor

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

func (*QueryChannelConfig) GetMaxTargets

func (m *QueryChannelConfig) GetMaxTargets() int32

func (*QueryChannelConfig) GetMinResponses

func (m *QueryChannelConfig) GetMinResponses() int32

func (*QueryChannelConfig) GetRetryOpts

func (m *QueryChannelConfig) GetRetryOpts() *CommonRetryOpts

func (*QueryChannelConfig) ProtoMessage

func (*QueryChannelConfig) ProtoMessage()

func (*QueryChannelConfig) Reset

func (m *QueryChannelConfig) Reset()

func (*QueryChannelConfig) String

func (m *QueryChannelConfig) String() string

func (*QueryChannelConfig) XXX_DiscardUnknown

func (m *QueryChannelConfig) XXX_DiscardUnknown()

func (*QueryChannelConfig) XXX_Marshal

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

func (*QueryChannelConfig) XXX_Merge

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

func (*QueryChannelConfig) XXX_Size

func (m *QueryChannelConfig) XXX_Size() int

func (*QueryChannelConfig) XXX_Unmarshal

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

type Registrar

type Registrar struct {
	EnrollId             string   `protobuf:"bytes,1,opt,name=enrollId,proto3" json:"enrollId,omitempty"`
	EnrollSecret         string   `protobuf:"bytes,2,opt,name=enrollSecret,proto3" json:"enrollSecret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Registrar) Descriptor

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

func (*Registrar) GetEnrollId

func (m *Registrar) GetEnrollId() string

func (*Registrar) GetEnrollSecret

func (m *Registrar) GetEnrollSecret() string

func (*Registrar) ProtoMessage

func (*Registrar) ProtoMessage()

func (*Registrar) Reset

func (m *Registrar) Reset()

func (*Registrar) String

func (m *Registrar) String() string

func (*Registrar) XXX_DiscardUnknown

func (m *Registrar) XXX_DiscardUnknown()

func (*Registrar) XXX_Marshal

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

func (*Registrar) XXX_Merge

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

func (*Registrar) XXX_Size

func (m *Registrar) XXX_Size() int

func (*Registrar) XXX_Unmarshal

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

type ReqConfigDelete

type ReqConfigDelete struct {
	Configs              []*OrgConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ReqConfigDelete) Descriptor

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

func (*ReqConfigDelete) GetConfigs

func (m *ReqConfigDelete) GetConfigs() []*OrgConfig

func (*ReqConfigDelete) ProtoMessage

func (*ReqConfigDelete) ProtoMessage()

func (*ReqConfigDelete) Reset

func (m *ReqConfigDelete) Reset()

func (*ReqConfigDelete) String

func (m *ReqConfigDelete) String() string

func (*ReqConfigDelete) XXX_DiscardUnknown

func (m *ReqConfigDelete) XXX_DiscardUnknown()

func (*ReqConfigDelete) XXX_Marshal

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

func (*ReqConfigDelete) XXX_Merge

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

func (*ReqConfigDelete) XXX_Size

func (m *ReqConfigDelete) XXX_Size() int

func (*ReqConfigDelete) XXX_Unmarshal

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

type ReqConfigList

type ReqConfigList struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqConfigList) Descriptor

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

func (*ReqConfigList) ProtoMessage

func (*ReqConfigList) ProtoMessage()

func (*ReqConfigList) Reset

func (m *ReqConfigList) Reset()

func (*ReqConfigList) String

func (m *ReqConfigList) String() string

func (*ReqConfigList) XXX_DiscardUnknown

func (m *ReqConfigList) XXX_DiscardUnknown()

func (*ReqConfigList) XXX_Marshal

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

func (*ReqConfigList) XXX_Merge

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

func (*ReqConfigList) XXX_Size

func (m *ReqConfigList) XXX_Size() int

func (*ReqConfigList) XXX_Unmarshal

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

type ReqConfigObtain

type ReqConfigObtain struct {
	// 联盟根域名,如:example.com
	LeagueDomain string `protobuf:"bytes,1,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"`
	// 组织域名,如org.com
	OrgDomain            string   `protobuf:"bytes,2,opt,name=orgDomain,proto3" json:"orgDomain,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqConfigObtain) Descriptor

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

func (*ReqConfigObtain) GetLeagueDomain

func (m *ReqConfigObtain) GetLeagueDomain() string

func (*ReqConfigObtain) GetOrgDomain

func (m *ReqConfigObtain) GetOrgDomain() string

func (*ReqConfigObtain) ProtoMessage

func (*ReqConfigObtain) ProtoMessage()

func (*ReqConfigObtain) Reset

func (m *ReqConfigObtain) Reset()

func (*ReqConfigObtain) String

func (m *ReqConfigObtain) String() string

func (*ReqConfigObtain) XXX_DiscardUnknown

func (m *ReqConfigObtain) XXX_DiscardUnknown()

func (*ReqConfigObtain) XXX_Marshal

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

func (*ReqConfigObtain) XXX_Merge

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

func (*ReqConfigObtain) XXX_Size

func (m *ReqConfigObtain) XXX_Size() int

func (*ReqConfigObtain) XXX_Unmarshal

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

type ReqConfigSet

type ReqConfigSet struct {
	// Version 内容的版本。用于SDK应用相应的解析规则
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// 联盟根域名,如:example.com
	LeagueDomain string `protobuf:"bytes,2,opt,name=leagueDomain,proto3" json:"leagueDomain,omitempty"`
	// 排序节点信息
	Orderer *Orderer `protobuf:"bytes,3,opt,name=orderer,proto3" json:"orderer,omitempty"`
	// 组织节点信息
	Org *Org `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"`
	// Client go sdk 使用的客户端
	Client *Client `protobuf:"bytes,5,opt,name=client,proto3" json:"client,omitempty"`
	// 联盟通道信息集合
	Channels             map[string]*Channel `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

fabric网络配置请求

func (*ReqConfigSet) Descriptor

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

func (*ReqConfigSet) GetChannels

func (m *ReqConfigSet) GetChannels() map[string]*Channel

func (*ReqConfigSet) GetClient

func (m *ReqConfigSet) GetClient() *Client

func (*ReqConfigSet) GetLeagueDomain

func (m *ReqConfigSet) GetLeagueDomain() string

func (*ReqConfigSet) GetOrderer

func (m *ReqConfigSet) GetOrderer() *Orderer

func (*ReqConfigSet) GetOrg

func (m *ReqConfigSet) GetOrg() *Org

func (*ReqConfigSet) GetVersion

func (m *ReqConfigSet) GetVersion() string

func (*ReqConfigSet) ProtoMessage

func (*ReqConfigSet) ProtoMessage()

func (*ReqConfigSet) Reset

func (m *ReqConfigSet) Reset()

func (*ReqConfigSet) String

func (m *ReqConfigSet) String() string

func (*ReqConfigSet) XXX_DiscardUnknown

func (m *ReqConfigSet) XXX_DiscardUnknown()

func (*ReqConfigSet) XXX_Marshal

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

func (*ReqConfigSet) XXX_Merge

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

func (*ReqConfigSet) XXX_Size

func (m *ReqConfigSet) XXX_Size() int

func (*ReqConfigSet) XXX_Unmarshal

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

type RespConfigDelete

type RespConfigDelete struct {
	// 请求返回结果:success=0;fail=1
	Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"`
	// 当且仅当返回码为1时,此处包含错误信息
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

fabric网络配置请求返回

func (*RespConfigDelete) Descriptor

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

func (*RespConfigDelete) GetCode

func (m *RespConfigDelete) GetCode() Code

func (*RespConfigDelete) GetErrMsg

func (m *RespConfigDelete) GetErrMsg() string

func (*RespConfigDelete) ProtoMessage

func (*RespConfigDelete) ProtoMessage()

func (*RespConfigDelete) Reset

func (m *RespConfigDelete) Reset()

func (*RespConfigDelete) String

func (m *RespConfigDelete) String() string

func (*RespConfigDelete) XXX_DiscardUnknown

func (m *RespConfigDelete) XXX_DiscardUnknown()

func (*RespConfigDelete) XXX_Marshal

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

func (*RespConfigDelete) XXX_Merge

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

func (*RespConfigDelete) XXX_Size

func (m *RespConfigDelete) XXX_Size() int

func (*RespConfigDelete) XXX_Unmarshal

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

type RespConfigList

type RespConfigList struct {
	// 请求返回结果:success=0;fail=1
	Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"`
	// 当且仅当返回码为1时,此处包含错误信息
	ErrMsg               string       `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	Configs              []*OrgConfig `protobuf:"bytes,3,rep,name=configs,proto3" json:"configs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*RespConfigList) Descriptor

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

func (*RespConfigList) GetCode

func (m *RespConfigList) GetCode() Code

func (*RespConfigList) GetConfigs

func (m *RespConfigList) GetConfigs() []*OrgConfig

func (*RespConfigList) GetErrMsg

func (m *RespConfigList) GetErrMsg() string

func (*RespConfigList) ProtoMessage

func (*RespConfigList) ProtoMessage()

func (*RespConfigList) Reset

func (m *RespConfigList) Reset()

func (*RespConfigList) String

func (m *RespConfigList) String() string

func (*RespConfigList) XXX_DiscardUnknown

func (m *RespConfigList) XXX_DiscardUnknown()

func (*RespConfigList) XXX_Marshal

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

func (*RespConfigList) XXX_Merge

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

func (*RespConfigList) XXX_Size

func (m *RespConfigList) XXX_Size() int

func (*RespConfigList) XXX_Unmarshal

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

type RespConfigObtain

type RespConfigObtain struct {
	// 请求返回结果:success=0;fail=1
	Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"`
	// 当且仅当返回码为1时,此处包含错误信息
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	ConfigBytes          []byte   `protobuf:"bytes,3,opt,name=configBytes,proto3" json:"configBytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespConfigObtain) Descriptor

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

func (*RespConfigObtain) GetCode

func (m *RespConfigObtain) GetCode() Code

func (*RespConfigObtain) GetConfigBytes

func (m *RespConfigObtain) GetConfigBytes() []byte

func (*RespConfigObtain) GetErrMsg

func (m *RespConfigObtain) GetErrMsg() string

func (*RespConfigObtain) ProtoMessage

func (*RespConfigObtain) ProtoMessage()

func (*RespConfigObtain) Reset

func (m *RespConfigObtain) Reset()

func (*RespConfigObtain) String

func (m *RespConfigObtain) String() string

func (*RespConfigObtain) XXX_DiscardUnknown

func (m *RespConfigObtain) XXX_DiscardUnknown()

func (*RespConfigObtain) XXX_Marshal

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

func (*RespConfigObtain) XXX_Merge

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

func (*RespConfigObtain) XXX_Size

func (m *RespConfigObtain) XXX_Size() int

func (*RespConfigObtain) XXX_Unmarshal

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

type RespConfigSet

type RespConfigSet struct {
	// 请求返回结果:success=0;fail=1
	Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=config.Code" json:"code,omitempty"`
	// 当且仅当返回码为1时,此处包含错误信息
	ErrMsg               string   `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

fabric网络配置请求返回

func (*RespConfigSet) Descriptor

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

func (*RespConfigSet) GetCode

func (m *RespConfigSet) GetCode() Code

func (*RespConfigSet) GetErrMsg

func (m *RespConfigSet) GetErrMsg() string

func (*RespConfigSet) ProtoMessage

func (*RespConfigSet) ProtoMessage()

func (*RespConfigSet) Reset

func (m *RespConfigSet) Reset()

func (*RespConfigSet) String

func (m *RespConfigSet) String() string

func (*RespConfigSet) XXX_DiscardUnknown

func (m *RespConfigSet) XXX_DiscardUnknown()

func (*RespConfigSet) XXX_Marshal

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

func (*RespConfigSet) XXX_Merge

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

func (*RespConfigSet) XXX_Size

func (m *RespConfigSet) XXX_Size() int

func (*RespConfigSet) XXX_Unmarshal

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

type User

type User struct {
	// 用户名,如:Admin/User0
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// 是否为管理员用户
	IsAdmin bool `protobuf:"varint,2,opt,name=isAdmin,proto3" json:"isAdmin,omitempty"`
	// 用户密钥信息
	Crypto               *Crypto  `protobuf:"bytes,5,opt,name=crypto,proto3" json:"crypto,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

组织用户

func (*User) Descriptor

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

func (*User) GetCrypto

func (m *User) GetCrypto() *Crypto

func (*User) GetIsAdmin

func (m *User) GetIsAdmin() bool

func (*User) GetName

func (m *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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