outlet

package
v0.0.0-...-8fe5654 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOutletServiceHandler

func RegisterOutletServiceHandler(s server.Server, hdlr OutletServiceHandler, opts ...server.HandlerOption)

Types

type Commodity

type Commodity struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Price                int32    `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	Quantity             int32    `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Weight               int32    `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Commodity) Descriptor

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

func (*Commodity) GetDescription

func (m *Commodity) GetDescription() string

func (*Commodity) GetId

func (m *Commodity) GetId() string

func (*Commodity) GetPrice

func (m *Commodity) GetPrice() int32

func (*Commodity) GetQuantity

func (m *Commodity) GetQuantity() int32

func (*Commodity) GetWeight

func (m *Commodity) GetWeight() int32

func (*Commodity) ProtoMessage

func (*Commodity) ProtoMessage()

func (*Commodity) Reset

func (m *Commodity) Reset()

func (*Commodity) String

func (m *Commodity) String() string

func (*Commodity) XXX_DiscardUnknown

func (m *Commodity) XXX_DiscardUnknown()

func (*Commodity) XXX_Marshal

func (m *Commodity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Commodity) XXX_Merge

func (m *Commodity) XXX_Merge(src proto.Message)

func (*Commodity) XXX_Size

func (m *Commodity) XXX_Size() int

func (*Commodity) XXX_Unmarshal

func (m *Commodity) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetRequest) Descriptor

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

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type Order

type Order struct {
	Id                   string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Description          string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	SumPrice             int32        `protobuf:"varint,3,opt,name=sum_price,json=sumPrice,proto3" json:"sum_price,omitempty"`
	UserId               string       `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CourierId            string       `protobuf:"bytes,5,opt,name=courier_id,json=courierId,proto3" json:"courier_id,omitempty"`
	Commoditys           []*Commodity `protobuf:"bytes,6,rep,name=commoditys,proto3" json:"commoditys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Order) Descriptor

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

func (*Order) GetCommoditys

func (m *Order) GetCommoditys() []*Commodity

func (*Order) GetCourierId

func (m *Order) GetCourierId() string

func (*Order) GetDescription

func (m *Order) GetDescription() string

func (*Order) GetId

func (m *Order) GetId() string

func (*Order) GetSumPrice

func (m *Order) GetSumPrice() int32

func (*Order) GetUserId

func (m *Order) GetUserId() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) Reset

func (m *Order) Reset()

func (*Order) String

func (m *Order) String() string

func (*Order) XXX_DiscardUnknown

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal

func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order) XXX_Merge

func (m *Order) XXX_Merge(src proto.Message)

func (*Order) XXX_Size

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal

func (m *Order) XXX_Unmarshal(b []byte) error

type OutletService

type OutletService struct {
	OutletServiceHandler
}

func (*OutletService) CreateOrder

func (h *OutletService) CreateOrder(ctx context.Context, in *Order, out *Response) error

func (*OutletService) GetOrders

func (h *OutletService) GetOrders(ctx context.Context, in *GetRequest, out *Response) error

type OutletServiceClient

type OutletServiceClient interface {
	CreateOrder(ctx context.Context, in *Order, opts ...client.CallOption) (*Response, error)
	GetOrders(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Response, error)
}

func NewOutletServiceClient

func NewOutletServiceClient(serviceName string, c client.Client) OutletServiceClient

type OutletServiceHandler

type OutletServiceHandler interface {
	CreateOrder(context.Context, *Order, *Response) error
	GetOrders(context.Context, *GetRequest, *Response) error
}

type Response

type Response struct {
	Created              bool     `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"`
	Orders               []*Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCreated

func (m *Response) GetCreated() bool

func (*Response) GetOrders

func (m *Response) GetOrders() []*Order

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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