api

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

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_reverse_proto protoreflect.FileDescriptor
View Source
var Reverse_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Reverse",
	HandlerType: (*ReverseServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Reverse",
			Handler:    _Reverse_Reverse_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "reverse.proto",
}

Reverse_ServiceDesc is the grpc.ServiceDesc for Reverse service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterReverseServer

func RegisterReverseServer(s grpc.ServiceRegistrar, srv ReverseServer)

Types

type ReverseClient

type ReverseClient interface {
	Reverse(ctx context.Context, in *ReverseRequest, opts ...grpc.CallOption) (*ReverseResponse, error)
}

ReverseClient is the client API for Reverse 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.

func NewReverseClient

func NewReverseClient(cc grpc.ClientConnInterface) ReverseClient

type ReverseRequest

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

func (*ReverseRequest) Descriptor deprecated

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

Deprecated: Use ReverseRequest.ProtoReflect.Descriptor instead.

func (*ReverseRequest) GetContent

func (x *ReverseRequest) GetContent() string

func (*ReverseRequest) ProtoMessage

func (*ReverseRequest) ProtoMessage()

func (*ReverseRequest) ProtoReflect

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

func (*ReverseRequest) Reset

func (x *ReverseRequest) Reset()

func (*ReverseRequest) String

func (x *ReverseRequest) String() string

type ReverseResponse

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

func (*ReverseResponse) Descriptor deprecated

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

Deprecated: Use ReverseResponse.ProtoReflect.Descriptor instead.

func (*ReverseResponse) GetContent

func (x *ReverseResponse) GetContent() string

func (*ReverseResponse) ProtoMessage

func (*ReverseResponse) ProtoMessage()

func (*ReverseResponse) ProtoReflect

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

func (*ReverseResponse) Reset

func (x *ReverseResponse) Reset()

func (*ReverseResponse) String

func (x *ReverseResponse) String() string

type ReverseServer

type ReverseServer interface {
	Reverse(context.Context, *ReverseRequest) (*ReverseResponse, error)
	// contains filtered or unexported methods
}

ReverseServer is the server API for Reverse service. All implementations must embed UnimplementedReverseServer for forward compatibility

type Server

type Server struct {
	UnimplementedReverseServer
}

Server for the Reverse gRPC API

func (*Server) Reverse

func (s *Server) Reverse(ctx context.Context, in *ReverseRequest) (*ReverseResponse, error)

Reverse the content of the request

type UnimplementedReverseServer

type UnimplementedReverseServer struct {
}

UnimplementedReverseServer must be embedded to have forward compatible implementations.

func (UnimplementedReverseServer) Reverse

type UnsafeReverseServer

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

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

Jump to

Keyboard shortcuts

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