v1

package
v0.0.0-...-71a7f5d Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrpcGateway_Echo_FullMethodName = "/grpc.gateway.service.v1.GrpcGateway/Echo"
)

Variables

View Source
var File_gen_grpc_gateway_grpc_gateway_proto protoreflect.FileDescriptor
View Source
var GrpcGateway_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.gateway.service.v1.GrpcGateway",
	HandlerType: (*GrpcGatewayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _GrpcGateway_Echo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gen/grpc-gateway/grpc_gateway.proto",
}

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

Functions

func RegisterGrpcGatewayServer

func RegisterGrpcGatewayServer(s grpc.ServiceRegistrar, srv GrpcGatewayServer)

Types

type GrpcGatewayClient

type GrpcGatewayClient interface {
	// rpc Echo(StringMessage) returns (StringMessage) {}
	Echo(ctx context.Context, in *StringMessage, opts ...grpc.CallOption) (*StringMessage, error)
}

GrpcGatewayClient is the client API for GrpcGateway 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 GrpcGatewayServer

type GrpcGatewayServer interface {
	// rpc Echo(StringMessage) returns (StringMessage) {}
	Echo(context.Context, *StringMessage) (*StringMessage, error)
	// contains filtered or unexported methods
}

GrpcGatewayServer is the server API for GrpcGateway service. All implementations must embed UnimplementedGrpcGatewayServer for forward compatibility

type StringMessage

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

func (*StringMessage) Descriptor deprecated

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

Deprecated: Use StringMessage.ProtoReflect.Descriptor instead.

func (*StringMessage) GetValue

func (x *StringMessage) GetValue() string

func (*StringMessage) ProtoMessage

func (*StringMessage) ProtoMessage()

func (*StringMessage) ProtoReflect

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

func (*StringMessage) Reset

func (x *StringMessage) Reset()

func (*StringMessage) String

func (x *StringMessage) String() string

type UnimplementedGrpcGatewayServer

type UnimplementedGrpcGatewayServer struct {
}

UnimplementedGrpcGatewayServer must be embedded to have forward compatible implementations.

func (UnimplementedGrpcGatewayServer) Echo

type UnsafeGrpcGatewayServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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