ordercomm

package
v0.0.0-...-00872a6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ordercomm_order_proto protoreflect.FileDescriptor

Functions

func RegisterOrderSvcServer

func RegisterOrderSvcServer(s *grpc.Server, srv OrderSvcServer)

Types

type CreateOrderReply

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

The response message containing the id of the order

func (*CreateOrderReply) Descriptor deprecated

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

Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.

func (*CreateOrderReply) GetId

func (x *CreateOrderReply) GetId() string

func (*CreateOrderReply) ProtoMessage

func (*CreateOrderReply) ProtoMessage()

func (*CreateOrderReply) ProtoReflect

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

func (*CreateOrderReply) Reset

func (x *CreateOrderReply) Reset()

func (*CreateOrderReply) String

func (x *CreateOrderReply) String() string

type CreateOrderRequest

type CreateOrderRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Code        string `protobuf:"bytes,2,opt,name=Code,proto3" json:"Code,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the order details

func (*CreateOrderRequest) Descriptor deprecated

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

Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.

func (*CreateOrderRequest) GetCode

func (x *CreateOrderRequest) GetCode() string

func (*CreateOrderRequest) GetDescription

func (x *CreateOrderRequest) GetDescription() string

func (*CreateOrderRequest) GetName

func (x *CreateOrderRequest) GetName() 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 DeleteOrderReply

type DeleteOrderReply struct {
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

The response message to the delete request

func (*DeleteOrderReply) Descriptor deprecated

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

Deprecated: Use DeleteOrderReply.ProtoReflect.Descriptor instead.

func (*DeleteOrderReply) GetOrder

func (x *DeleteOrderReply) GetOrder() *Order

func (*DeleteOrderReply) ProtoMessage

func (*DeleteOrderReply) ProtoMessage()

func (*DeleteOrderReply) ProtoReflect

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

func (*DeleteOrderReply) Reset

func (x *DeleteOrderReply) Reset()

func (*DeleteOrderReply) String

func (x *DeleteOrderReply) String() string

type DeleteOrderRequest

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

The request message for the delete request

func (*DeleteOrderRequest) Descriptor deprecated

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

Deprecated: Use DeleteOrderRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrderRequest) GetId

func (x *DeleteOrderRequest) GetId() string

func (*DeleteOrderRequest) ProtoMessage

func (*DeleteOrderRequest) ProtoMessage()

func (*DeleteOrderRequest) ProtoReflect

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

func (*DeleteOrderRequest) Reset

func (x *DeleteOrderRequest) Reset()

func (*DeleteOrderRequest) String

func (x *DeleteOrderRequest) String() string

type ExistOrderReply

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

The response message to the exists request

func (*ExistOrderReply) Descriptor deprecated

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

Deprecated: Use ExistOrderReply.ProtoReflect.Descriptor instead.

func (*ExistOrderReply) GetExists

func (x *ExistOrderReply) GetExists() bool

func (*ExistOrderReply) ProtoMessage

func (*ExistOrderReply) ProtoMessage()

func (*ExistOrderReply) ProtoReflect

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

func (*ExistOrderReply) Reset

func (x *ExistOrderReply) Reset()

func (*ExistOrderReply) String

func (x *ExistOrderReply) String() string

type ExistOrderRequest

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

The request message for the exists request

func (*ExistOrderRequest) Descriptor deprecated

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

Deprecated: Use ExistOrderRequest.ProtoReflect.Descriptor instead.

func (*ExistOrderRequest) GetId

func (x *ExistOrderRequest) GetId() string

func (*ExistOrderRequest) ProtoMessage

func (*ExistOrderRequest) ProtoMessage()

func (*ExistOrderRequest) ProtoReflect

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

func (*ExistOrderRequest) Reset

func (x *ExistOrderRequest) Reset()

func (*ExistOrderRequest) String

func (x *ExistOrderRequest) String() string

type ListOrdersReply

type ListOrdersReply struct {
	Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	// contains filtered or unexported fields
}

The response message to the list orders request.

func (*ListOrdersReply) Descriptor deprecated

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

Deprecated: Use ListOrdersReply.ProtoReflect.Descriptor instead.

func (*ListOrdersReply) GetOrders

func (x *ListOrdersReply) GetOrders() []*Order

func (*ListOrdersReply) ProtoMessage

func (*ListOrdersReply) ProtoMessage()

func (*ListOrdersReply) ProtoReflect

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

func (*ListOrdersReply) Reset

func (x *ListOrdersReply) Reset()

func (*ListOrdersReply) String

func (x *ListOrdersReply) String() string

type ListOrdersRequest

type ListOrdersRequest struct {
	FilterIds []string `protobuf:"bytes,1,rep,name=FilterIds,proto3" json:"FilterIds,omitempty"`
	// contains filtered or unexported fields
}

The request message for the list orders request

func (*ListOrdersRequest) Descriptor deprecated

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

Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.

func (*ListOrdersRequest) GetFilterIds

func (x *ListOrdersRequest) GetFilterIds() []string

func (*ListOrdersRequest) ProtoMessage

func (*ListOrdersRequest) ProtoMessage()

func (*ListOrdersRequest) ProtoReflect

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

func (*ListOrdersRequest) Reset

func (x *ListOrdersRequest) Reset()

func (*ListOrdersRequest) String

func (x *ListOrdersRequest) String() string

type Order

type Order struct {
	Id          string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Code        string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCode

func (x *Order) GetCode() string

func (*Order) GetDescription

func (x *Order) GetDescription() string

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetName

func (x *Order) GetName() 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 OrderSvcClient

type OrderSvcClient interface {
	// Creates a new order
	Create(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderReply, error)
	// Reads an order
	Read(ctx context.Context, in *ReadOrderRequest, opts ...grpc.CallOption) (*ReadOrderReply, error)
	// Exists an order
	Exist(ctx context.Context, in *ExistOrderRequest, opts ...grpc.CallOption) (*ExistOrderReply, error)
	// Delete an order
	Delete(ctx context.Context, in *DeleteOrderRequest, opts ...grpc.CallOption) (*DeleteOrderReply, error)
	// Update an order
	Update(ctx context.Context, in *UpdateOrderRequest, opts ...grpc.CallOption) (*UpdateOrderReply, error)
	// List an order
	List(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*ListOrdersReply, error)
}

OrderSvcClient is the client API for OrderSvc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOrderSvcClient

func NewOrderSvcClient(cc grpc.ClientConnInterface) OrderSvcClient

type OrderSvcServer

type OrderSvcServer interface {
	// Creates a new order
	Create(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
	// Reads an order
	Read(context.Context, *ReadOrderRequest) (*ReadOrderReply, error)
	// Exists an order
	Exist(context.Context, *ExistOrderRequest) (*ExistOrderReply, error)
	// Delete an order
	Delete(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error)
	// Update an order
	Update(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error)
	// List an order
	List(context.Context, *ListOrdersRequest) (*ListOrdersReply, error)
}

OrderSvcServer is the server API for OrderSvc service.

type ReadOrderReply

type ReadOrderReply struct {
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

The response message to the read request

func (*ReadOrderReply) Descriptor deprecated

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

Deprecated: Use ReadOrderReply.ProtoReflect.Descriptor instead.

func (*ReadOrderReply) GetOrder

func (x *ReadOrderReply) GetOrder() *Order

func (*ReadOrderReply) ProtoMessage

func (*ReadOrderReply) ProtoMessage()

func (*ReadOrderReply) ProtoReflect

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

func (*ReadOrderReply) Reset

func (x *ReadOrderReply) Reset()

func (*ReadOrderReply) String

func (x *ReadOrderReply) String() string

type ReadOrderRequest

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

The request message for the read request

func (*ReadOrderRequest) Descriptor deprecated

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

Deprecated: Use ReadOrderRequest.ProtoReflect.Descriptor instead.

func (*ReadOrderRequest) GetId

func (x *ReadOrderRequest) GetId() string

func (*ReadOrderRequest) ProtoMessage

func (*ReadOrderRequest) ProtoMessage()

func (*ReadOrderRequest) ProtoReflect

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

func (*ReadOrderRequest) Reset

func (x *ReadOrderRequest) Reset()

func (*ReadOrderRequest) String

func (x *ReadOrderRequest) String() string

type UnimplementedOrderSvcServer

type UnimplementedOrderSvcServer struct {
}

UnimplementedOrderSvcServer can be embedded to have forward compatible implementations.

func (*UnimplementedOrderSvcServer) Create

func (*UnimplementedOrderSvcServer) Delete

func (*UnimplementedOrderSvcServer) Exist

func (*UnimplementedOrderSvcServer) List

func (*UnimplementedOrderSvcServer) Read

func (*UnimplementedOrderSvcServer) Update

type UpdateOrderReply

type UpdateOrderReply struct {
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

The response message to the update request. Returns the old values for the Order

func (*UpdateOrderReply) Descriptor deprecated

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

Deprecated: Use UpdateOrderReply.ProtoReflect.Descriptor instead.

func (*UpdateOrderReply) GetOrder

func (x *UpdateOrderReply) GetOrder() *Order

func (*UpdateOrderReply) ProtoMessage

func (*UpdateOrderReply) ProtoMessage()

func (*UpdateOrderReply) ProtoReflect

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

func (*UpdateOrderReply) Reset

func (x *UpdateOrderReply) Reset()

func (*UpdateOrderReply) String

func (x *UpdateOrderReply) String() string

type UpdateOrderRequest

type UpdateOrderRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Code        string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

The request message for the update request

func (*UpdateOrderRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrderRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrderRequest) GetCode

func (x *UpdateOrderRequest) GetCode() string

func (*UpdateOrderRequest) GetDescription

func (x *UpdateOrderRequest) GetDescription() string

func (*UpdateOrderRequest) GetId

func (x *UpdateOrderRequest) GetId() string

func (*UpdateOrderRequest) GetName

func (x *UpdateOrderRequest) GetName() string

func (*UpdateOrderRequest) ProtoMessage

func (*UpdateOrderRequest) ProtoMessage()

func (*UpdateOrderRequest) ProtoReflect

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

func (*UpdateOrderRequest) Reset

func (x *UpdateOrderRequest) Reset()

func (*UpdateOrderRequest) String

func (x *UpdateOrderRequest) String() string

Jump to

Keyboard shortcuts

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