Documentation
¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
raftrpc.proto
It has these top-level messages:
Nothing
Index ¶
- Variables
- func RegisterRaftServer(s *grpc.Server, srv RaftServer)
- type Nothing
- func (*Nothing) Descriptor() ([]byte, []int)
- func (m *Nothing) Marshal() (dAtA []byte, err error)
- func (m *Nothing) MarshalTo(dAtA []byte) (int, error)
- func (*Nothing) ProtoMessage()
- func (m *Nothing) Reset()
- func (m *Nothing) Size() (n int)
- func (m *Nothing) String() string
- func (m *Nothing) Unmarshal(dAtA []byte) error
- type RaftClient
- type RaftServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRaftrpc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRaftrpc = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRaftServer ¶
func RegisterRaftServer(s *grpc.Server, srv RaftServer)
Types ¶
type Nothing ¶
type Nothing struct { }
func (*Nothing) Descriptor ¶
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
type RaftClient ¶
type RaftClient interface {
Step(ctx context.Context, in *raftpb.Message, opts ...grpc.CallOption) (*Nothing, error)
}
func NewRaftClient ¶
func NewRaftClient(cc *grpc.ClientConn) RaftClient
Click to show internal directories.
Click to hide internal directories.