client

package
v0.0.0-...-3680e65 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package client is a generated protocol buffer package.

It is generated from these files:

proto/client/client.proto

It has these top-level messages:

CommandResult
Nothing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBFTRaftClientServer

func RegisterBFTRaftClientServer(s *grpc.Server, srv BFTRaftClientServer)

Types

type BFTRaftClientClient

type BFTRaftClientClient interface {
	ResponseCommand(ctx context.Context, in *CommandResult, opts ...grpc.CallOption) (*Nothing, error)
}

func NewBFTRaftClientClient

func NewBFTRaftClientClient(cc *grpc.ClientConn) BFTRaftClientClient

type BFTRaftClientServer

type BFTRaftClientServer interface {
	ResponseCommand(context.Context, *CommandResult) (*Nothing, error)
}

type CommandResult

type CommandResult struct {
	Group     uint64 `protobuf:"varint,1,opt,name=group" json:"group,omitempty"`
	NodeId    uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId" json:"node_id,omitempty"`
	RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId" json:"request_id,omitempty"`
	Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	Result    []byte `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"`
}

func (*CommandResult) Descriptor

func (*CommandResult) Descriptor() ([]byte, []int)

func (*CommandResult) GetGroup

func (m *CommandResult) GetGroup() uint64

func (*CommandResult) GetNodeId

func (m *CommandResult) GetNodeId() uint64

func (*CommandResult) GetRequestId

func (m *CommandResult) GetRequestId() uint64

func (*CommandResult) GetResult

func (m *CommandResult) GetResult() []byte

func (*CommandResult) GetSignature

func (m *CommandResult) GetSignature() []byte

func (*CommandResult) ProtoMessage

func (*CommandResult) ProtoMessage()

func (*CommandResult) Reset

func (m *CommandResult) Reset()

func (*CommandResult) String

func (m *CommandResult) String() string

type Nothing

type Nothing struct {
}

func (*Nothing) Descriptor

func (*Nothing) Descriptor() ([]byte, []int)

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) String

func (m *Nothing) String() string

Jump to

Keyboard shortcuts

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