testservices

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterCalcServer

func RegisterCalcServer(s prpc.Registrar, srv CalcServer)

func RegisterGreeterServer

func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer)

Types

type CalcClient

type CalcClient interface {
	Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error)
}

CalcClient is the client API for Calc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCalcClient

func NewCalcClient(cc grpc.ClientConnInterface) CalcClient

func NewCalcPRPCClient

func NewCalcPRPCClient(client *prpc.Client) CalcClient

type CalcServer

type CalcServer interface {
	Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error)
}

CalcServer is the server API for Calc service.

type GreeterClient

type GreeterClient interface {
	// Sends a greeting
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
}

GreeterClient is the client API for Greeter service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

func NewGreeterPRPCClient

func NewGreeterPRPCClient(client *prpc.Client) GreeterClient

type GreeterServer

type GreeterServer interface {
	// Sends a greeting
	SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}

GreeterServer is the server API for Greeter service.

type HelloReply

type HelloReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message containing the greetings

func (*HelloReply) Descriptor

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

func (*HelloReply) GetMessage

func (m *HelloReply) GetMessage() string

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

func (*HelloReply) XXX_DiscardUnknown

func (m *HelloReply) XXX_DiscardUnknown()

func (*HelloReply) XXX_Marshal

func (m *HelloReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloReply) XXX_Merge

func (m *HelloReply) XXX_Merge(src proto.Message)

func (*HelloReply) XXX_Size

func (m *HelloReply) XXX_Size() int

func (*HelloReply) XXX_Unmarshal

func (m *HelloReply) XXX_Unmarshal(b []byte) error

type HelloRequest

type HelloRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the user's name.

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HelloRequest) XXX_Merge

func (m *HelloRequest) XXX_Merge(src proto.Message)

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

func (m *HelloRequest) XXX_Unmarshal(b []byte) error

type MultiplyRequest

type MultiplyRequest struct {
	X                    int32    `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y                    int32    `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MultiplyRequest) Descriptor

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

func (*MultiplyRequest) GetX

func (m *MultiplyRequest) GetX() int32

func (*MultiplyRequest) GetY

func (m *MultiplyRequest) GetY() int32

func (*MultiplyRequest) ProtoMessage

func (*MultiplyRequest) ProtoMessage()

func (*MultiplyRequest) Reset

func (m *MultiplyRequest) Reset()

func (*MultiplyRequest) String

func (m *MultiplyRequest) String() string

func (*MultiplyRequest) XXX_DiscardUnknown

func (m *MultiplyRequest) XXX_DiscardUnknown()

func (*MultiplyRequest) XXX_Marshal

func (m *MultiplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiplyRequest) XXX_Merge

func (m *MultiplyRequest) XXX_Merge(src proto.Message)

func (*MultiplyRequest) XXX_Size

func (m *MultiplyRequest) XXX_Size() int

func (*MultiplyRequest) XXX_Unmarshal

func (m *MultiplyRequest) XXX_Unmarshal(b []byte) error

type MultiplyResponse

type MultiplyResponse struct {
	Z                    int32    `protobuf:"varint,1,opt,name=z,proto3" json:"z,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MultiplyResponse) Descriptor

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

func (*MultiplyResponse) GetZ

func (m *MultiplyResponse) GetZ() int32

func (*MultiplyResponse) ProtoMessage

func (*MultiplyResponse) ProtoMessage()

func (*MultiplyResponse) Reset

func (m *MultiplyResponse) Reset()

func (*MultiplyResponse) String

func (m *MultiplyResponse) String() string

func (*MultiplyResponse) XXX_DiscardUnknown

func (m *MultiplyResponse) XXX_DiscardUnknown()

func (*MultiplyResponse) XXX_Marshal

func (m *MultiplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiplyResponse) XXX_Merge

func (m *MultiplyResponse) XXX_Merge(src proto.Message)

func (*MultiplyResponse) XXX_Size

func (m *MultiplyResponse) XXX_Size() int

func (*MultiplyResponse) XXX_Unmarshal

func (m *MultiplyResponse) XXX_Unmarshal(b []byte) error

type UnimplementedCalcServer

type UnimplementedCalcServer struct {
}

UnimplementedCalcServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalcServer) Multiply

type UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) SayHello

Jump to

Keyboard shortcuts

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