test

package
v0.0.1-alpha 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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterAnswerServiceServer

func RegisterAnswerServiceServer(s *grpc.Server, srv AnswerServiceServer)

Types

type Answer

type Answer struct {
	Answer string `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*Answer) Descriptor deprecated

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

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetAnswer

func (x *Answer) GetAnswer() string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

func (x *Answer) ProtoReflect() protoreflect.Message

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

type AnswerServiceClient

type AnswerServiceClient interface {
	Greeting(ctx context.Context, in *Question, opts ...grpc.CallOption) (*Answer, error)
}

AnswerServiceClient is the client API for AnswerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AnswerServiceServer

type AnswerServiceServer interface {
	Greeting(context.Context, *Question) (*Answer, error)
	// contains filtered or unexported methods
}

AnswerServiceServer is the server API for AnswerService service. All implementations must embed UnimplementedAnswerServiceServer for forward compatibility

type Question

type Question struct {
	Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*Question) Descriptor deprecated

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

Deprecated: Use Question.ProtoReflect.Descriptor instead.

func (*Question) GetQuestion

func (x *Question) GetQuestion() string

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) ProtoReflect

func (x *Question) ProtoReflect() protoreflect.Message

func (*Question) Reset

func (x *Question) Reset()

func (*Question) String

func (x *Question) String() string

type UnimplementedAnswerServiceServer

type UnimplementedAnswerServiceServer struct {
}

UnimplementedAnswerServiceServer must be embedded to have forward compatible implementations.

func (*UnimplementedAnswerServiceServer) Greeting

Jump to

Keyboard shortcuts

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