pb

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hello_proto protoreflect.FileDescriptor

Functions

func RegisterHelloServiceServer

func RegisterHelloServiceServer(s *grpc.Server, srv HelloServiceServer)

Types

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetGreeting

func (x *HelloRequest) GetGreeting() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

func (*HelloRequest) Validate added in v1.0.15

func (m *HelloRequest) Validate() error

Validate checks the field values on HelloRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HelloRequestValidationError added in v1.0.15

type HelloRequestValidationError struct {
	// contains filtered or unexported fields
}

HelloRequestValidationError is the validation error returned by HelloRequest.Validate if the designated constraints aren't met.

func (HelloRequestValidationError) Cause added in v1.0.15

Cause function returns cause value.

func (HelloRequestValidationError) Error added in v1.0.15

Error satisfies the builtin error interface

func (HelloRequestValidationError) ErrorName added in v1.0.15

func (e HelloRequestValidationError) ErrorName() string

ErrorName returns error name.

func (HelloRequestValidationError) Field added in v1.0.15

Field function returns field value.

func (HelloRequestValidationError) Key added in v1.0.15

Key function returns key value.

func (HelloRequestValidationError) Reason added in v1.0.15

Reason function returns reason value.

type HelloResponse

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

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetReply

func (x *HelloResponse) GetReply() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

func (*HelloResponse) Validate added in v1.0.15

func (m *HelloResponse) Validate() error

Validate checks the field values on HelloResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HelloResponseValidationError added in v1.0.15

type HelloResponseValidationError struct {
	// contains filtered or unexported fields
}

HelloResponseValidationError is the validation error returned by HelloResponse.Validate if the designated constraints aren't met.

func (HelloResponseValidationError) Cause added in v1.0.15

Cause function returns cause value.

func (HelloResponseValidationError) Error added in v1.0.15

Error satisfies the builtin error interface

func (HelloResponseValidationError) ErrorName added in v1.0.15

func (e HelloResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HelloResponseValidationError) Field added in v1.0.15

Field function returns field value.

func (HelloResponseValidationError) Key added in v1.0.15

Key function returns key value.

func (HelloResponseValidationError) Reason added in v1.0.15

Reason function returns reason value.

type HelloServiceClient

type HelloServiceClient interface {
	SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}

HelloServiceClient is the client API for HelloService service.

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

type HelloServiceServer

type HelloServiceServer interface {
	SayHello(context.Context, *HelloRequest) (*HelloResponse, error)
}

HelloServiceServer is the server API for HelloService service.

type UnimplementedHelloServiceServer

type UnimplementedHelloServiceServer struct {
}

UnimplementedHelloServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHelloServiceServer) SayHello

Jump to

Keyboard shortcuts

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