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 ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidLengthRaftrpc = fmt.Errorf("proto: negative length found during unmarshaling")
)
Functions ¶
func RegisterRaftServer ¶
func RegisterRaftServer(s *grpc.Server, srv RaftServer)
Types ¶
type Nothing ¶
type Nothing struct { }
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.