notificationspb

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_notificationspb_api_proto protoreflect.FileDescriptor
View Source
var NotificationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "notificationspb.NotificationsService",
	HandlerType: (*NotificationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NotifyOrderCreated",
			Handler:    _NotificationsService_NotifyOrderCreated_Handler,
		},
		{
			MethodName: "NotifyOrderCanceled",
			Handler:    _NotificationsService_NotifyOrderCanceled_Handler,
		},
		{
			MethodName: "NotifyOrderReady",
			Handler:    _NotificationsService_NotifyOrderReady_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "notificationspb/api.proto",
}

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

Functions

func RegisterNotificationsServiceServer

func RegisterNotificationsServiceServer(s grpc.ServiceRegistrar, srv NotificationsServiceServer)

Types

type NotificationsServiceClient

type NotificationsServiceClient interface {
	NotifyOrderCreated(ctx context.Context, in *NotifyOrderCreatedRequest, opts ...grpc.CallOption) (*NotifyOrderCreatedResponse, error)
	NotifyOrderCanceled(ctx context.Context, in *NotifyOrderCanceledRequest, opts ...grpc.CallOption) (*NotifyOrderCanceledResponse, error)
	NotifyOrderReady(ctx context.Context, in *NotifyOrderReadyRequest, opts ...grpc.CallOption) (*NotifyOrderReadyResponse, error)
}

NotificationsServiceClient is the client API for NotificationsService 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 NotificationsServiceServer

type NotificationsServiceServer interface {
	NotifyOrderCreated(context.Context, *NotifyOrderCreatedRequest) (*NotifyOrderCreatedResponse, error)
	NotifyOrderCanceled(context.Context, *NotifyOrderCanceledRequest) (*NotifyOrderCanceledResponse, error)
	NotifyOrderReady(context.Context, *NotifyOrderReadyRequest) (*NotifyOrderReadyResponse, error)
	// contains filtered or unexported methods
}

NotificationsServiceServer is the server API for NotificationsService service. All implementations must embed UnimplementedNotificationsServiceServer for forward compatibility

type NotifyOrderCanceledRequest

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

func (*NotifyOrderCanceledRequest) Descriptor deprecated

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

Deprecated: Use NotifyOrderCanceledRequest.ProtoReflect.Descriptor instead.

func (*NotifyOrderCanceledRequest) GetCustomerId

func (x *NotifyOrderCanceledRequest) GetCustomerId() string

func (*NotifyOrderCanceledRequest) GetOrderId

func (x *NotifyOrderCanceledRequest) GetOrderId() string

func (*NotifyOrderCanceledRequest) ProtoMessage

func (*NotifyOrderCanceledRequest) ProtoMessage()

func (*NotifyOrderCanceledRequest) ProtoReflect

func (*NotifyOrderCanceledRequest) Reset

func (x *NotifyOrderCanceledRequest) Reset()

func (*NotifyOrderCanceledRequest) String

func (x *NotifyOrderCanceledRequest) String() string

type NotifyOrderCanceledResponse

type NotifyOrderCanceledResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyOrderCanceledResponse) Descriptor deprecated

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

Deprecated: Use NotifyOrderCanceledResponse.ProtoReflect.Descriptor instead.

func (*NotifyOrderCanceledResponse) ProtoMessage

func (*NotifyOrderCanceledResponse) ProtoMessage()

func (*NotifyOrderCanceledResponse) ProtoReflect

func (*NotifyOrderCanceledResponse) Reset

func (x *NotifyOrderCanceledResponse) Reset()

func (*NotifyOrderCanceledResponse) String

func (x *NotifyOrderCanceledResponse) String() string

type NotifyOrderCreatedRequest

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

func (*NotifyOrderCreatedRequest) Descriptor deprecated

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

Deprecated: Use NotifyOrderCreatedRequest.ProtoReflect.Descriptor instead.

func (*NotifyOrderCreatedRequest) GetCustomerId

func (x *NotifyOrderCreatedRequest) GetCustomerId() string

func (*NotifyOrderCreatedRequest) GetOrderId

func (x *NotifyOrderCreatedRequest) GetOrderId() string

func (*NotifyOrderCreatedRequest) ProtoMessage

func (*NotifyOrderCreatedRequest) ProtoMessage()

func (*NotifyOrderCreatedRequest) ProtoReflect

func (*NotifyOrderCreatedRequest) Reset

func (x *NotifyOrderCreatedRequest) Reset()

func (*NotifyOrderCreatedRequest) String

func (x *NotifyOrderCreatedRequest) String() string

type NotifyOrderCreatedResponse

type NotifyOrderCreatedResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyOrderCreatedResponse) Descriptor deprecated

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

Deprecated: Use NotifyOrderCreatedResponse.ProtoReflect.Descriptor instead.

func (*NotifyOrderCreatedResponse) ProtoMessage

func (*NotifyOrderCreatedResponse) ProtoMessage()

func (*NotifyOrderCreatedResponse) ProtoReflect

func (*NotifyOrderCreatedResponse) Reset

func (x *NotifyOrderCreatedResponse) Reset()

func (*NotifyOrderCreatedResponse) String

func (x *NotifyOrderCreatedResponse) String() string

type NotifyOrderReadyRequest

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

func (*NotifyOrderReadyRequest) Descriptor deprecated

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

Deprecated: Use NotifyOrderReadyRequest.ProtoReflect.Descriptor instead.

func (*NotifyOrderReadyRequest) GetCustomerId

func (x *NotifyOrderReadyRequest) GetCustomerId() string

func (*NotifyOrderReadyRequest) GetOrderId

func (x *NotifyOrderReadyRequest) GetOrderId() string

func (*NotifyOrderReadyRequest) ProtoMessage

func (*NotifyOrderReadyRequest) ProtoMessage()

func (*NotifyOrderReadyRequest) ProtoReflect

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

func (*NotifyOrderReadyRequest) Reset

func (x *NotifyOrderReadyRequest) Reset()

func (*NotifyOrderReadyRequest) String

func (x *NotifyOrderReadyRequest) String() string

type NotifyOrderReadyResponse

type NotifyOrderReadyResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyOrderReadyResponse) Descriptor deprecated

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

Deprecated: Use NotifyOrderReadyResponse.ProtoReflect.Descriptor instead.

func (*NotifyOrderReadyResponse) ProtoMessage

func (*NotifyOrderReadyResponse) ProtoMessage()

func (*NotifyOrderReadyResponse) ProtoReflect

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

func (*NotifyOrderReadyResponse) Reset

func (x *NotifyOrderReadyResponse) Reset()

func (*NotifyOrderReadyResponse) String

func (x *NotifyOrderReadyResponse) String() string

type UnimplementedNotificationsServiceServer

type UnimplementedNotificationsServiceServer struct {
}

UnimplementedNotificationsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNotificationsServiceServer) NotifyOrderCanceled

func (UnimplementedNotificationsServiceServer) NotifyOrderCreated

func (UnimplementedNotificationsServiceServer) NotifyOrderReady

type UnsafeNotificationsServiceServer

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

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

Jump to

Keyboard shortcuts

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