Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2021 Changes in this version + var File_proto_raft_proto protoreflect.FileDescriptor + func RegisterRaftServer(s *grpc.Server, srv RaftServer) + type ApplyRequest struct + Request []byte + func (*ApplyRequest) Descriptor() ([]byte, []int) + func (*ApplyRequest) ProtoMessage() + func (x *ApplyRequest) GetRequest() []byte + func (x *ApplyRequest) ProtoReflect() protoreflect.Message + func (x *ApplyRequest) Reset() + func (x *ApplyRequest) String() string + type ApplyResponse struct + Response []byte + func (*ApplyResponse) Descriptor() ([]byte, []int) + func (*ApplyResponse) ProtoMessage() + func (x *ApplyResponse) GetResponse() []byte + func (x *ApplyResponse) ProtoReflect() protoreflect.Message + func (x *ApplyResponse) Reset() + func (x *ApplyResponse) String() string + type GetDetailsRequest struct + func (*GetDetailsRequest) Descriptor() ([]byte, []int) + func (*GetDetailsRequest) ProtoMessage() + func (x *GetDetailsRequest) ProtoReflect() protoreflect.Message + func (x *GetDetailsRequest) Reset() + func (x *GetDetailsRequest) String() string + type GetDetailsResponse struct + DiscoveryPort int32 + ServerId string + func (*GetDetailsResponse) Descriptor() ([]byte, []int) + func (*GetDetailsResponse) ProtoMessage() + func (x *GetDetailsResponse) GetDiscoveryPort() int32 + func (x *GetDetailsResponse) GetServerId() string + func (x *GetDetailsResponse) ProtoReflect() protoreflect.Message + func (x *GetDetailsResponse) Reset() + func (x *GetDetailsResponse) String() string + type RaftClient interface + ApplyLog func(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error) + GetDetails func(ctx context.Context, in *GetDetailsRequest, opts ...grpc.CallOption) (*GetDetailsResponse, error) + func NewRaftClient(cc grpc.ClientConnInterface) RaftClient + type RaftServer interface + ApplyLog func(context.Context, *ApplyRequest) (*ApplyResponse, error) + GetDetails func(context.Context, *GetDetailsRequest) (*GetDetailsResponse, error) + type UnimplementedRaftServer struct + func (*UnimplementedRaftServer) ApplyLog(context.Context, *ApplyRequest) (*ApplyResponse, error) + func (*UnimplementedRaftServer) GetDetails(context.Context, *GetDetailsRequest) (*GetDetailsResponse, error)