Documentation ¶
Overview ¶
Package services is a generated protocol buffer package.
It is generated from these files:
peer-svc.proto
It has these top-level messages:
RPCPeerAddReq RPCPeerAddResp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServices ¶
Types ¶
type PeerService ¶
type PeerService int
func (*PeerService) ValidateAdd ¶
func (p *PeerService) ValidateAdd(args *RPCPeerAddReq, reply *RPCPeerAddResp) error
Validate function checks all validation for AddPeer at server side
type RPCPeerAddReq ¶
type RPCPeerAddReq struct { Name *string `protobuf:"bytes,1,req" json:"Name,omitempty"` Addresses []string `protobuf:"bytes,2,rep" json:"Addresses,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RPCPeerAddReq) GetAddresses ¶
func (m *RPCPeerAddReq) GetAddresses() []string
func (*RPCPeerAddReq) GetName ¶
func (m *RPCPeerAddReq) GetName() string
func (*RPCPeerAddReq) ProtoMessage ¶
func (*RPCPeerAddReq) ProtoMessage()
func (*RPCPeerAddReq) Reset ¶
func (m *RPCPeerAddReq) Reset()
func (*RPCPeerAddReq) String ¶
func (m *RPCPeerAddReq) String() string
type RPCPeerAddResp ¶
type RPCPeerAddResp struct { OpRet *int32 `protobuf:"varint,1,req" json:"OpRet,omitempty"` OpError *string `protobuf:"bytes,2,req" json:"OpError,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*RPCPeerAddResp) GetOpError ¶
func (m *RPCPeerAddResp) GetOpError() string
func (*RPCPeerAddResp) GetOpRet ¶
func (m *RPCPeerAddResp) GetOpRet() int32
func (*RPCPeerAddResp) ProtoMessage ¶
func (*RPCPeerAddResp) ProtoMessage()
func (*RPCPeerAddResp) Reset ¶
func (m *RPCPeerAddResp) Reset()
func (*RPCPeerAddResp) String ¶
func (m *RPCPeerAddResp) String() string
Click to show internal directories.
Click to hide internal directories.