Documentation ¶
Index ¶
Constants ¶
const (
GrpcGateway_Echo_FullMethodName = "/grpc.gateway.service.v1.GrpcGateway/Echo"
)
Variables ¶
var File_gen_grpc_gateway_grpc_gateway_proto protoreflect.FileDescriptor
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.
func NewGrpcGatewayClient ¶
func NewGrpcGatewayClient(cc grpc.ClientConnInterface) GrpcGatewayClient
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 ¶
func (UnimplementedGrpcGatewayServer) Echo(context.Context, *StringMessage) (*StringMessage, error)
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.