pb

package
v0.0.0-...-1225f0b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

add.proto

It has these top-level messages:

AddRequest
AddReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAddServer

func RegisterAddServer(s *grpc.Server, srv AddServer)

Types

type AddClient

type AddClient interface {
	// Adds two int32s.
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddReply, error)
}

func NewAddClient

func NewAddClient(cc *grpc.ClientConn) AddClient

type AddReply

type AddReply struct {
	V int64 `protobuf:"varint,1,opt,name=v" json:"v,omitempty"`
}

The response contains the result of the calculation.

func (*AddReply) ProtoMessage

func (*AddReply) ProtoMessage()

func (*AddReply) Reset

func (m *AddReply) Reset()

func (*AddReply) String

func (m *AddReply) String() string

type AddRequest

type AddRequest struct {
	A int64 `protobuf:"varint,1,opt,name=a" json:"a,omitempty"`
	B int64 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"`
}

The request contains two parameters.

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) Reset

func (m *AddRequest) Reset()

func (*AddRequest) String

func (m *AddRequest) String() string

type AddServer

type AddServer interface {
	// Adds two int32s.
	Add(context.Context, *AddRequest) (*AddReply, error)
}

Jump to

Keyboard shortcuts

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