proto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_observability_proto_order_proto protoreflect.FileDescriptor
View Source
var GatewayCallbackService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.GatewayCallbackService",
	HandlerType: (*GatewayCallbackServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PushResult",
			Handler:    _GatewayCallbackService_PushResult_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examples/observability/proto/order.proto",
}

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

View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrder",
			Handler:    _OrderService_CreateOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examples/observability/proto/order.proto",
}

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

Functions

func RegisterGatewayCallbackServiceServer

func RegisterGatewayCallbackServiceServer(s grpc.ServiceRegistrar, srv GatewayCallbackServiceServer)

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

Types

type CreateOrderRequest

type CreateOrderRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrderRequest) Descriptor deprecated

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

Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.

func (*CreateOrderRequest) GetProductId

func (x *CreateOrderRequest) GetProductId() string

func (*CreateOrderRequest) GetUserId

func (x *CreateOrderRequest) GetUserId() string

func (*CreateOrderRequest) ProtoMessage

func (*CreateOrderRequest) ProtoMessage()

func (*CreateOrderRequest) ProtoReflect

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

func (*CreateOrderRequest) Reset

func (x *CreateOrderRequest) Reset()

func (*CreateOrderRequest) String

func (x *CreateOrderRequest) String() string

type CreateOrderResponse

type CreateOrderResponse struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrderResponse) Descriptor deprecated

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

Deprecated: Use CreateOrderResponse.ProtoReflect.Descriptor instead.

func (*CreateOrderResponse) GetOrderId

func (x *CreateOrderResponse) GetOrderId() string

func (*CreateOrderResponse) GetStatus

func (x *CreateOrderResponse) GetStatus() string

func (*CreateOrderResponse) ProtoMessage

func (*CreateOrderResponse) ProtoMessage()

func (*CreateOrderResponse) ProtoReflect

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

func (*CreateOrderResponse) Reset

func (x *CreateOrderResponse) Reset()

func (*CreateOrderResponse) String

func (x *CreateOrderResponse) String() string

type GatewayCallbackServiceClient

type GatewayCallbackServiceClient interface {
	PushResult(ctx context.Context, in *PushResultRequest, opts ...grpc.CallOption) (*PushResultResponse, error)
}

GatewayCallbackServiceClient is the client API for GatewayCallbackService 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 GatewayCallbackServiceServer

type GatewayCallbackServiceServer interface {
	PushResult(context.Context, *PushResultRequest) (*PushResultResponse, error)
	// contains filtered or unexported methods
}

GatewayCallbackServiceServer is the server API for GatewayCallbackService service. All implementations must embed UnimplementedGatewayCallbackServiceServer for forward compatibility

type OrderResult

type OrderResult struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderResult) Descriptor deprecated

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

Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.

func (*OrderResult) GetOrderId

func (x *OrderResult) GetOrderId() string

func (*OrderResult) GetStatus

func (x *OrderResult) GetStatus() string

func (*OrderResult) ProtoMessage

func (*OrderResult) ProtoMessage()

func (*OrderResult) ProtoReflect

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

func (*OrderResult) Reset

func (x *OrderResult) Reset()

func (*OrderResult) String

func (x *OrderResult) String() string

type OrderServiceClient

type OrderServiceClient interface {
	CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error)
}

OrderServiceClient is the client API for OrderService 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 OrderServiceServer

type OrderServiceServer interface {
	CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
	// contains filtered or unexported methods
}

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type PushResultRequest

type PushResultRequest struct {
	Result *OrderResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*PushResultRequest) Descriptor deprecated

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

Deprecated: Use PushResultRequest.ProtoReflect.Descriptor instead.

func (*PushResultRequest) GetResult

func (x *PushResultRequest) GetResult() *OrderResult

func (*PushResultRequest) ProtoMessage

func (*PushResultRequest) ProtoMessage()

func (*PushResultRequest) ProtoReflect

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

func (*PushResultRequest) Reset

func (x *PushResultRequest) Reset()

func (*PushResultRequest) String

func (x *PushResultRequest) String() string

type PushResultResponse

type PushResultResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*PushResultResponse) Descriptor deprecated

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

Deprecated: Use PushResultResponse.ProtoReflect.Descriptor instead.

func (*PushResultResponse) GetOk

func (x *PushResultResponse) GetOk() bool

func (*PushResultResponse) ProtoMessage

func (*PushResultResponse) ProtoMessage()

func (*PushResultResponse) ProtoReflect

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

func (*PushResultResponse) Reset

func (x *PushResultResponse) Reset()

func (*PushResultResponse) String

func (x *PushResultResponse) String() string

type UnimplementedGatewayCallbackServiceServer

type UnimplementedGatewayCallbackServiceServer struct {
}

UnimplementedGatewayCallbackServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGatewayCallbackServiceServer) PushResult

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) CreateOrder

type UnsafeGatewayCallbackServiceServer

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

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

type UnsafeOrderServiceServer

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

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

Jump to

Keyboard shortcuts

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