proto

package
v0.0.0-...-cc246cb Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_nayotta_metathings_component_echo_proto_service_proto protoreflect.FileDescriptor

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s *grpc.Server, srv EchoServiceServer)

Types

type EchoRequest

type EchoRequest struct {
	Text *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetText

func (x *EchoRequest) GetText() *wrapperspb.StringValue

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

type EchoResponse

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

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetText

func (x *EchoResponse) GetText() 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

type EchoServiceClient

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

EchoServiceClient is the client API for EchoService service.

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

type EchoServiceServer

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

EchoServiceServer is the server API for EchoService service.

type EchoService_StreamingEchoClient

type EchoService_StreamingEchoClient interface {
	Send(*StreamingEchoRequest) error
	Recv() (*StreamingEchoResponse, error)
	grpc.ClientStream
}

type EchoService_StreamingEchoServer

type EchoService_StreamingEchoServer interface {
	Send(*StreamingEchoResponse) error
	Recv() (*StreamingEchoRequest, error)
	grpc.ServerStream
}

type StreamingEchoRequest

type StreamingEchoRequest struct {
	Text *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*StreamingEchoRequest) Descriptor deprecated

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

Deprecated: Use StreamingEchoRequest.ProtoReflect.Descriptor instead.

func (*StreamingEchoRequest) GetText

func (*StreamingEchoRequest) ProtoMessage

func (*StreamingEchoRequest) ProtoMessage()

func (*StreamingEchoRequest) ProtoReflect

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

func (*StreamingEchoRequest) Reset

func (x *StreamingEchoRequest) Reset()

func (*StreamingEchoRequest) String

func (x *StreamingEchoRequest) String() string

type StreamingEchoResponse

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

func (*StreamingEchoResponse) Descriptor deprecated

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

Deprecated: Use StreamingEchoResponse.ProtoReflect.Descriptor instead.

func (*StreamingEchoResponse) GetText

func (x *StreamingEchoResponse) GetText() string

func (*StreamingEchoResponse) ProtoMessage

func (*StreamingEchoResponse) ProtoMessage()

func (*StreamingEchoResponse) ProtoReflect

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

func (*StreamingEchoResponse) Reset

func (x *StreamingEchoResponse) Reset()

func (*StreamingEchoResponse) String

func (x *StreamingEchoResponse) String() string

type UnimplementedEchoServiceServer

type UnimplementedEchoServiceServer struct {
}

UnimplementedEchoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEchoServiceServer) Echo

func (*UnimplementedEchoServiceServer) StreamingEcho

Jump to

Keyboard shortcuts

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