Documentation ¶
Index ¶
- Constants
- func Marshal(md *Metadata) ([]byte, error)
- type ConsensusTypeMetadataFactory
- type Consenter
- func (*Consenter) Descriptor() ([]byte, []int)
- func (m *Consenter) GetClientTlsCert() []byte
- func (m *Consenter) GetHost() string
- func (m *Consenter) GetPort() uint32
- func (m *Consenter) GetServerTlsCert() []byte
- func (*Consenter) ProtoMessage()
- func (m *Consenter) Reset()
- func (m *Consenter) String() string
- func (m *Consenter) XXX_DiscardUnknown()
- func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Consenter) XXX_Merge(src proto.Message)
- func (m *Consenter) XXX_Size() int
- func (m *Consenter) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetConsenters() []*Consenter
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) String() string
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const TypeKey = "etcdraft"
TypeKey is the string with which this consensus implementation is identified across Fabric.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusTypeMetadataFactory ¶
type ConsensusTypeMetadataFactory struct{}
ConsensusTypeMetadataFactory allows this implementation's proto messages to register their type with the orderer's proto messages. This is needed for protolator to work.
func (ConsensusTypeMetadataFactory) NewMessage ¶
func (dogf ConsensusTypeMetadataFactory) NewMessage() proto.Message
NewMessage implements the Orderer.ConsensusTypeMetadataFactory interface.
type Consenter ¶
type Consenter struct { Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` ClientTlsCert []byte `protobuf:"bytes,3,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"` ServerTlsCert []byte `protobuf:"bytes,4,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Consenter represents a consenting node (i.e. replica).
func (*Consenter) Descriptor ¶
func (*Consenter) GetClientTlsCert ¶
func (*Consenter) GetServerTlsCert ¶
func (*Consenter) ProtoMessage ¶
func (*Consenter) ProtoMessage()
func (*Consenter) XXX_DiscardUnknown ¶
func (m *Consenter) XXX_DiscardUnknown()
func (*Consenter) XXX_Marshal ¶
func (*Consenter) XXX_Unmarshal ¶
type Metadata ¶
type Metadata struct { Consenters []*Consenter `protobuf:"bytes,1,rep,name=consenters" json:"consenters,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Metadata is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set "etcdraft".
func (*Metadata) Descriptor ¶
func (*Metadata) GetConsenters ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.