echov1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_yeti_echo_v1_echo_proto protoreflect.FileDescriptor

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)

Types

type EchoRequest

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

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetMessage

func (x *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

func (*EchoRequest) Validate

func (m *EchoRequest) Validate() error

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

type EchoRequestValidationError

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

EchoRequestValidationError is the validation error returned by EchoRequest.Validate if the designated constraints aren't met.

func (EchoRequestValidationError) Cause

Cause function returns cause value.

func (EchoRequestValidationError) Error

Error satisfies the builtin error interface

func (EchoRequestValidationError) ErrorName

func (e EchoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (EchoRequestValidationError) Field

Field function returns field value.

func (EchoRequestValidationError) Key

Key function returns key value.

func (EchoRequestValidationError) Reason

Reason function returns reason value.

type EchoResponse

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

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetMessage

func (x *EchoResponse) GetMessage() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

func (*EchoResponse) Validate

func (m *EchoResponse) Validate() error

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

type EchoResponseValidationError

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

EchoResponseValidationError is the validation error returned by EchoResponse.Validate if the designated constraints aren't met.

func (EchoResponseValidationError) Cause

Cause function returns cause value.

func (EchoResponseValidationError) Error

Error satisfies the builtin error interface

func (EchoResponseValidationError) ErrorName

func (e EchoResponseValidationError) ErrorName() string

ErrorName returns error name.

func (EchoResponseValidationError) Field

Field function returns field value.

func (EchoResponseValidationError) Key

Key function returns key value.

func (EchoResponseValidationError) Reason

Reason function returns reason value.

type EchoServiceClient

type EchoServiceClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

EchoServiceClient is the client API for EchoService 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 EchoServiceServer

type EchoServiceServer interface {
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
}

EchoServiceServer is the server API for EchoService service. All implementations should embed UnimplementedEchoServiceServer for forward compatibility

type UnimplementedEchoServiceServer

type UnimplementedEchoServiceServer struct {
}

UnimplementedEchoServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedEchoServiceServer) Echo

type UnsafeEchoServiceServer

type UnsafeEchoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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