service

package
v0.0.0-...-7d43bac Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package service is a generated protocol buffer package.

It is generated from these files:

service.proto

It has these top-level messages:

TestRequest
TestResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTestServiceServer

func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)

Types

type TestRequest

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

func (*TestRequest) Descriptor

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

func (*TestRequest) GetA

func (m *TestRequest) GetA() int64

func (*TestRequest) GetB

func (m *TestRequest) GetB() int64

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) Reset

func (m *TestRequest) Reset()

func (*TestRequest) String

func (m *TestRequest) String() string

type TestResponse

type TestResponse struct {
	Sum int64 `protobuf:"varint,1,opt,name=Sum" json:"Sum,omitempty"`
}

func (*TestResponse) Descriptor

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

func (*TestResponse) GetSum

func (m *TestResponse) GetSum() int64

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) Reset

func (m *TestResponse) Reset()

func (*TestResponse) String

func (m *TestResponse) String() string

type TestServiceClient

type TestServiceClient interface {
	Sum(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
}

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

type TestServiceServer

type TestServiceServer interface {
	Sum(context.Context, *TestRequest) (*TestResponse, error)
}

Jump to

Keyboard shortcuts

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