proto

package
v0.0.0-...-84592dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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")
	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) Descriptor() ([]byte, []int)

func (*Nothing) Marshal

func (m *Nothing) Marshal() (dAtA []byte, err error)

func (*Nothing) MarshalTo

func (m *Nothing) MarshalTo(dAtA []byte) (int, error)

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) Size

func (m *Nothing) Size() (n int)

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) Unmarshal

func (m *Nothing) Unmarshal(dAtA []byte) error

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

type RaftServer

type RaftServer interface {
	Step(context.Context, *raftpb.Message) (*Nothing, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL