pb

package
v0.0.0-...-6988bd6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_api_proto protoreflect.FileDescriptor
View Source
var OrdersManagerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.OrdersManagerService",
	HandlerType: (*OrdersManagerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InsertOrder",
			Handler:    _OrdersManagerService_InsertOrder_Handler,
		},
		{
			MethodName: "GetOrder",
			Handler:    _OrdersManagerService_GetOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

OrdersManagerService_ServiceDesc is the grpc.ServiceDesc for OrdersManagerService 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 TnxConfirmingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.TnxConfirmingService",
	HandlerType: (*TnxConfirmingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendConfirmation",
			Handler:    _TnxConfirmingService_SendConfirmation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

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

Functions

func RegisterOrdersManagerServiceServer

func RegisterOrdersManagerServiceServer(s grpc.ServiceRegistrar, srv OrdersManagerServiceServer)

func RegisterTnxConfirmingServiceServer

func RegisterTnxConfirmingServiceServer(s grpc.ServiceRegistrar, srv TnxConfirmingServiceServer)

Types

type Confirmation

type Confirmation struct {
	Tnx    string `protobuf:"bytes,1,opt,name=tnx,proto3" json:"tnx,omitempty"`
	Commit bool   `protobuf:"varint,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*Confirmation) Descriptor deprecated

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

Deprecated: Use Confirmation.ProtoReflect.Descriptor instead.

func (*Confirmation) GetCommit

func (x *Confirmation) GetCommit() bool

func (*Confirmation) GetTnx

func (x *Confirmation) GetTnx() string

func (*Confirmation) ProtoMessage

func (*Confirmation) ProtoMessage()

func (*Confirmation) ProtoReflect

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

func (*Confirmation) Reset

func (x *Confirmation) Reset()

func (*Confirmation) String

func (x *Confirmation) String() string

type ConfirmationResponse

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

func (*ConfirmationResponse) Descriptor deprecated

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

Deprecated: Use ConfirmationResponse.ProtoReflect.Descriptor instead.

func (*ConfirmationResponse) ProtoMessage

func (*ConfirmationResponse) ProtoMessage()

func (*ConfirmationResponse) ProtoReflect

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

func (*ConfirmationResponse) Reset

func (x *ConfirmationResponse) Reset()

func (*ConfirmationResponse) String

func (x *ConfirmationResponse) String() string

type GetOrderRequest

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

func (*GetOrderRequest) Descriptor deprecated

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

Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.

func (*GetOrderRequest) GetId

func (x *GetOrderRequest) GetId() string

func (*GetOrderRequest) ProtoMessage

func (*GetOrderRequest) ProtoMessage()

func (*GetOrderRequest) ProtoReflect

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

func (*GetOrderRequest) Reset

func (x *GetOrderRequest) Reset()

func (*GetOrderRequest) String

func (x *GetOrderRequest) String() string

type Order

type Order struct {
	UserId    string                 `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Label     string                 `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() *timestamppb.Timestamp

func (*Order) GetLabel

func (x *Order) GetLabel() string

func (*Order) GetUserId

func (x *Order) GetUserId() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

type OrderResponse

type OrderResponse struct {
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId    string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Label     string                 `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderResponse) Descriptor deprecated

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

Deprecated: Use OrderResponse.ProtoReflect.Descriptor instead.

func (*OrderResponse) GetCreatedAt

func (x *OrderResponse) GetCreatedAt() *timestamppb.Timestamp

func (*OrderResponse) GetId

func (x *OrderResponse) GetId() string

func (*OrderResponse) GetLabel

func (x *OrderResponse) GetLabel() string

func (*OrderResponse) GetUserId

func (x *OrderResponse) GetUserId() string

func (*OrderResponse) ProtoMessage

func (*OrderResponse) ProtoMessage()

func (*OrderResponse) ProtoReflect

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

func (*OrderResponse) Reset

func (x *OrderResponse) Reset()

func (*OrderResponse) String

func (x *OrderResponse) String() string

type OrderTnxResponse

type OrderTnxResponse struct {
	Id  string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tnx string `protobuf:"bytes,2,opt,name=tnx,proto3" json:"tnx,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderTnxResponse) Descriptor deprecated

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

Deprecated: Use OrderTnxResponse.ProtoReflect.Descriptor instead.

func (*OrderTnxResponse) GetId

func (x *OrderTnxResponse) GetId() string

func (*OrderTnxResponse) GetTnx

func (x *OrderTnxResponse) GetTnx() string

func (*OrderTnxResponse) ProtoMessage

func (*OrderTnxResponse) ProtoMessage()

func (*OrderTnxResponse) ProtoReflect

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

func (*OrderTnxResponse) Reset

func (x *OrderTnxResponse) Reset()

func (*OrderTnxResponse) String

func (x *OrderTnxResponse) String() string

type OrdersManagerServiceClient

type OrdersManagerServiceClient interface {
	InsertOrder(ctx context.Context, in *Order, opts ...grpc.CallOption) (*OrderTnxResponse, error)
	GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*OrderResponse, error)
}

OrdersManagerServiceClient is the client API for OrdersManagerService 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 OrdersManagerServiceServer

type OrdersManagerServiceServer interface {
	InsertOrder(context.Context, *Order) (*OrderTnxResponse, error)
	GetOrder(context.Context, *GetOrderRequest) (*OrderResponse, error)
	// contains filtered or unexported methods
}

OrdersManagerServiceServer is the server API for OrdersManagerService service. All implementations must embed UnimplementedOrdersManagerServiceServer for forward compatibility

type TnxConfirmingServiceClient

type TnxConfirmingServiceClient interface {
	SendConfirmation(ctx context.Context, in *Confirmation, opts ...grpc.CallOption) (*ConfirmationResponse, error)
}

TnxConfirmingServiceClient is the client API for TnxConfirmingService 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 TnxConfirmingServiceServer

type TnxConfirmingServiceServer interface {
	SendConfirmation(context.Context, *Confirmation) (*ConfirmationResponse, error)
	// contains filtered or unexported methods
}

TnxConfirmingServiceServer is the server API for TnxConfirmingService service. All implementations must embed UnimplementedTnxConfirmingServiceServer for forward compatibility

type UnimplementedOrdersManagerServiceServer

type UnimplementedOrdersManagerServiceServer struct {
}

UnimplementedOrdersManagerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrdersManagerServiceServer) GetOrder

func (UnimplementedOrdersManagerServiceServer) InsertOrder

type UnimplementedTnxConfirmingServiceServer

type UnimplementedTnxConfirmingServiceServer struct {
}

UnimplementedTnxConfirmingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTnxConfirmingServiceServer) SendConfirmation

type UnsafeOrdersManagerServiceServer

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

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

type UnsafeTnxConfirmingServiceServer

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

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

Jump to

Keyboard shortcuts

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