importer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: AGPL-3.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImporterServiceEndpoints

func NewImporterServiceEndpoints() []*api.Endpoint

func RegisterImporterServiceHandler

func RegisterImporterServiceHandler(s server.Server, hdlr ImporterServiceHandler, opts ...server.HandlerOption) error

Types

type ImporterService

type ImporterService interface {
	Order(ctx context.Context, in *OrderImporterRequest, opts ...client.CallOption) (*empty.Empty, error)
	OrderConfirm(ctx context.Context, in *OrderConfirmRequest, opts ...client.CallOption) (*empty.Empty, error)
	OrderCancel(ctx context.Context, in *OrderCancelRequest, opts ...client.CallOption) (*empty.Empty, error)
}

func NewImporterService

func NewImporterService(name string, c client.Client) ImporterService

type ImporterServiceHandler

type ImporterServiceHandler interface {
	Order(context.Context, *OrderImporterRequest, *empty.Empty) error
	OrderConfirm(context.Context, *OrderConfirmRequest, *empty.Empty) error
	OrderCancel(context.Context, *OrderCancelRequest, *empty.Empty) error
}

type OrderCancelRequest

type OrderCancelRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"`
}

func (*OrderCancelRequest) Descriptor

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

func (*OrderCancelRequest) GetUuid

func (m *OrderCancelRequest) GetUuid() string

func (*OrderCancelRequest) ProtoMessage

func (*OrderCancelRequest) ProtoMessage()

func (*OrderCancelRequest) Reset

func (m *OrderCancelRequest) Reset()

func (*OrderCancelRequest) String

func (m *OrderCancelRequest) String() string

func (*OrderCancelRequest) Validate

func (m *OrderCancelRequest) Validate() error

Validate checks the field values on OrderCancelRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OrderCancelRequest) XXX_DiscardUnknown

func (m *OrderCancelRequest) XXX_DiscardUnknown()

func (*OrderCancelRequest) XXX_Marshal

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

func (*OrderCancelRequest) XXX_Merge

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

func (*OrderCancelRequest) XXX_Size

func (m *OrderCancelRequest) XXX_Size() int

func (*OrderCancelRequest) XXX_Unmarshal

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

type OrderCancelRequestValidationError

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

OrderCancelRequestValidationError is the validation error returned by OrderCancelRequest.Validate if the designated constraints aren't met.

func (OrderCancelRequestValidationError) Cause

Cause function returns cause value.

func (OrderCancelRequestValidationError) Error

Error satisfies the builtin error interface

func (OrderCancelRequestValidationError) ErrorName

ErrorName returns error name.

func (OrderCancelRequestValidationError) Field

Field function returns field value.

func (OrderCancelRequestValidationError) Key

Key function returns key value.

func (OrderCancelRequestValidationError) Reason

Reason function returns reason value.

type OrderConfirmRequest

type OrderConfirmRequest struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"`
	Cook int64  `protobuf:"varint,2,opt,name=cook,proto3" json:"cook"`
}

func (*OrderConfirmRequest) Descriptor

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

func (*OrderConfirmRequest) GetCook

func (m *OrderConfirmRequest) GetCook() int64

func (*OrderConfirmRequest) GetUuid

func (m *OrderConfirmRequest) GetUuid() string

func (*OrderConfirmRequest) ProtoMessage

func (*OrderConfirmRequest) ProtoMessage()

func (*OrderConfirmRequest) Reset

func (m *OrderConfirmRequest) Reset()

func (*OrderConfirmRequest) String

func (m *OrderConfirmRequest) String() string

func (*OrderConfirmRequest) Validate

func (m *OrderConfirmRequest) Validate() error

Validate checks the field values on OrderConfirmRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OrderConfirmRequest) XXX_DiscardUnknown

func (m *OrderConfirmRequest) XXX_DiscardUnknown()

func (*OrderConfirmRequest) XXX_Marshal

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

func (*OrderConfirmRequest) XXX_Merge

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

func (*OrderConfirmRequest) XXX_Size

func (m *OrderConfirmRequest) XXX_Size() int

func (*OrderConfirmRequest) XXX_Unmarshal

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

type OrderConfirmRequestValidationError

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

OrderConfirmRequestValidationError is the validation error returned by OrderConfirmRequest.Validate if the designated constraints aren't met.

func (OrderConfirmRequestValidationError) Cause

Cause function returns cause value.

func (OrderConfirmRequestValidationError) Error

Error satisfies the builtin error interface

func (OrderConfirmRequestValidationError) ErrorName

ErrorName returns error name.

func (OrderConfirmRequestValidationError) Field

Field function returns field value.

func (OrderConfirmRequestValidationError) Key

Key function returns key value.

func (OrderConfirmRequestValidationError) Reason

Reason function returns reason value.

type OrderImporterRequest

type OrderImporterRequest struct {
	Uuid         string                        `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"`
	Name         string                        `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
	Division     string                        `protobuf:"bytes,3,opt,name=division,proto3" json:"division"`
	Items        []*OrderImporterRequest_Item  `protobuf:"bytes,4,rep,name=items,proto3" json:"items"`
	Date         string                        `protobuf:"bytes,5,opt,name=date,proto3" json:"date"`
	Exec         string                        `protobuf:"bytes,6,opt,name=exec,proto3" json:"exec"`
	Address      *OrderImporterRequest_Address `protobuf:"bytes,7,opt,name=address,proto3" json:"address"`
	DeliveryType shared.DeliveryType           `protobuf:"varint,8,opt,name=delivery_type,json=deliveryType,proto3,enum=tpext.shared.DeliveryType" json:"delivery_type"`
	Vat          float64                       `protobuf:"fixed64,9,opt,name=vat,proto3" json:"vat"`
	Client       string                        `protobuf:"bytes,10,opt,name=client,proto3" json:"client"`
	GuestName    string                        `protobuf:"bytes,11,opt,name=guest_name,json=guestName,proto3" json:"guest_name"`
	GuestPhone   string                        `protobuf:"bytes,12,opt,name=guest_phone,json=guestPhone,proto3" json:"guest_phone"`
	GuestEmail   string                        `protobuf:"bytes,13,opt,name=guest_email,json=guestEmail,proto3" json:"guest_email"`
}

func (*OrderImporterRequest) Descriptor

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

func (*OrderImporterRequest) GetAddress

func (*OrderImporterRequest) GetClient

func (m *OrderImporterRequest) GetClient() string

func (*OrderImporterRequest) GetDate

func (m *OrderImporterRequest) GetDate() string

func (*OrderImporterRequest) GetDeliveryType

func (m *OrderImporterRequest) GetDeliveryType() shared.DeliveryType

func (*OrderImporterRequest) GetDivision

func (m *OrderImporterRequest) GetDivision() string

func (*OrderImporterRequest) GetExec

func (m *OrderImporterRequest) GetExec() string

func (*OrderImporterRequest) GetGuestEmail

func (m *OrderImporterRequest) GetGuestEmail() string

func (*OrderImporterRequest) GetGuestName

func (m *OrderImporterRequest) GetGuestName() string

func (*OrderImporterRequest) GetGuestPhone

func (m *OrderImporterRequest) GetGuestPhone() string

func (*OrderImporterRequest) GetItems

func (*OrderImporterRequest) GetName

func (m *OrderImporterRequest) GetName() string

func (*OrderImporterRequest) GetUuid

func (m *OrderImporterRequest) GetUuid() string

func (*OrderImporterRequest) GetVat

func (m *OrderImporterRequest) GetVat() float64

func (*OrderImporterRequest) ProtoMessage

func (*OrderImporterRequest) ProtoMessage()

func (*OrderImporterRequest) Reset

func (m *OrderImporterRequest) Reset()

func (*OrderImporterRequest) String

func (m *OrderImporterRequest) String() string

func (*OrderImporterRequest) Validate

func (m *OrderImporterRequest) Validate() error

Validate checks the field values on OrderImporterRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OrderImporterRequest) XXX_DiscardUnknown

func (m *OrderImporterRequest) XXX_DiscardUnknown()

func (*OrderImporterRequest) XXX_Marshal

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

func (*OrderImporterRequest) XXX_Merge

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

func (*OrderImporterRequest) XXX_Size

func (m *OrderImporterRequest) XXX_Size() int

func (*OrderImporterRequest) XXX_Unmarshal

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

type OrderImporterRequestValidationError

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

OrderImporterRequestValidationError is the validation error returned by OrderImporterRequest.Validate if the designated constraints aren't met.

func (OrderImporterRequestValidationError) Cause

Cause function returns cause value.

func (OrderImporterRequestValidationError) Error

Error satisfies the builtin error interface

func (OrderImporterRequestValidationError) ErrorName

ErrorName returns error name.

func (OrderImporterRequestValidationError) Field

Field function returns field value.

func (OrderImporterRequestValidationError) Key

Key function returns key value.

func (OrderImporterRequestValidationError) Reason

Reason function returns reason value.

type OrderImporterRequest_Address

type OrderImporterRequest_Address struct {
	Town     string `protobuf:"bytes,1,opt,name=town,proto3" json:"town"`
	Street   string `protobuf:"bytes,2,opt,name=street,proto3" json:"street"`
	Building string `protobuf:"bytes,3,opt,name=building,proto3" json:"building"`
	Flat     string `protobuf:"bytes,4,opt,name=flat,proto3" json:"flat"`
	Entrance string `protobuf:"bytes,5,opt,name=entrance,proto3" json:"entrance"`
	Floor    string `protobuf:"bytes,6,opt,name=floor,proto3" json:"floor"`
	Comment  string `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment"`
}

func (*OrderImporterRequest_Address) Descriptor

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

func (*OrderImporterRequest_Address) GetBuilding

func (m *OrderImporterRequest_Address) GetBuilding() string

func (*OrderImporterRequest_Address) GetComment

func (m *OrderImporterRequest_Address) GetComment() string

func (*OrderImporterRequest_Address) GetEntrance

func (m *OrderImporterRequest_Address) GetEntrance() string

func (*OrderImporterRequest_Address) GetFlat

func (m *OrderImporterRequest_Address) GetFlat() string

func (*OrderImporterRequest_Address) GetFloor

func (m *OrderImporterRequest_Address) GetFloor() string

func (*OrderImporterRequest_Address) GetStreet

func (m *OrderImporterRequest_Address) GetStreet() string

func (*OrderImporterRequest_Address) GetTown

func (m *OrderImporterRequest_Address) GetTown() string

func (*OrderImporterRequest_Address) ProtoMessage

func (*OrderImporterRequest_Address) ProtoMessage()

func (*OrderImporterRequest_Address) Reset

func (m *OrderImporterRequest_Address) Reset()

func (*OrderImporterRequest_Address) String

func (*OrderImporterRequest_Address) Validate

func (m *OrderImporterRequest_Address) Validate() error

Validate checks the field values on OrderImporterRequest_Address with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OrderImporterRequest_Address) XXX_DiscardUnknown

func (m *OrderImporterRequest_Address) XXX_DiscardUnknown()

func (*OrderImporterRequest_Address) XXX_Marshal

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

func (*OrderImporterRequest_Address) XXX_Merge

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

func (*OrderImporterRequest_Address) XXX_Size

func (m *OrderImporterRequest_Address) XXX_Size() int

func (*OrderImporterRequest_Address) XXX_Unmarshal

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

type OrderImporterRequest_AddressValidationError

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

OrderImporterRequest_AddressValidationError is the validation error returned by OrderImporterRequest_Address.Validate if the designated constraints aren't met.

func (OrderImporterRequest_AddressValidationError) Cause

Cause function returns cause value.

func (OrderImporterRequest_AddressValidationError) Error

Error satisfies the builtin error interface

func (OrderImporterRequest_AddressValidationError) ErrorName

ErrorName returns error name.

func (OrderImporterRequest_AddressValidationError) Field

Field function returns field value.

func (OrderImporterRequest_AddressValidationError) Key

Key function returns key value.

func (OrderImporterRequest_AddressValidationError) Reason

Reason function returns reason value.

type OrderImporterRequest_Item

type OrderImporterRequest_Item struct {
	Uuid       string  `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"`
	VolumeType string  `protobuf:"bytes,2,opt,name=volume_type,json=volumeType,proto3" json:"volume_type"`
	SaleGroup  string  `protobuf:"bytes,3,opt,name=sale_group,json=saleGroup,proto3" json:"sale_group"`
	Volume     float64 `protobuf:"fixed64,4,opt,name=volume,proto3" json:"volume"`
	Count      int64   `protobuf:"varint,5,opt,name=count,proto3" json:"count"`
	Price      float64 `protobuf:"fixed64,6,opt,name=price,proto3" json:"price"`
	Discount   float64 `protobuf:"fixed64,7,opt,name=discount,proto3" json:"discount"`
	Margin     float64 `protobuf:"fixed64,8,opt,name=margin,proto3" json:"margin"`
}

func (*OrderImporterRequest_Item) Descriptor

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

func (*OrderImporterRequest_Item) GetCount

func (m *OrderImporterRequest_Item) GetCount() int64

func (*OrderImporterRequest_Item) GetDiscount

func (m *OrderImporterRequest_Item) GetDiscount() float64

func (*OrderImporterRequest_Item) GetMargin

func (m *OrderImporterRequest_Item) GetMargin() float64

func (*OrderImporterRequest_Item) GetPrice

func (m *OrderImporterRequest_Item) GetPrice() float64

func (*OrderImporterRequest_Item) GetSaleGroup

func (m *OrderImporterRequest_Item) GetSaleGroup() string

func (*OrderImporterRequest_Item) GetUuid

func (m *OrderImporterRequest_Item) GetUuid() string

func (*OrderImporterRequest_Item) GetVolume

func (m *OrderImporterRequest_Item) GetVolume() float64

func (*OrderImporterRequest_Item) GetVolumeType

func (m *OrderImporterRequest_Item) GetVolumeType() string

func (*OrderImporterRequest_Item) ProtoMessage

func (*OrderImporterRequest_Item) ProtoMessage()

func (*OrderImporterRequest_Item) Reset

func (m *OrderImporterRequest_Item) Reset()

func (*OrderImporterRequest_Item) String

func (m *OrderImporterRequest_Item) String() string

func (*OrderImporterRequest_Item) Validate

func (m *OrderImporterRequest_Item) Validate() error

Validate checks the field values on OrderImporterRequest_Item with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*OrderImporterRequest_Item) XXX_DiscardUnknown

func (m *OrderImporterRequest_Item) XXX_DiscardUnknown()

func (*OrderImporterRequest_Item) XXX_Marshal

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

func (*OrderImporterRequest_Item) XXX_Merge

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

func (*OrderImporterRequest_Item) XXX_Size

func (m *OrderImporterRequest_Item) XXX_Size() int

func (*OrderImporterRequest_Item) XXX_Unmarshal

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

type OrderImporterRequest_ItemValidationError

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

OrderImporterRequest_ItemValidationError is the validation error returned by OrderImporterRequest_Item.Validate if the designated constraints aren't met.

func (OrderImporterRequest_ItemValidationError) Cause

Cause function returns cause value.

func (OrderImporterRequest_ItemValidationError) Error

Error satisfies the builtin error interface

func (OrderImporterRequest_ItemValidationError) ErrorName

ErrorName returns error name.

func (OrderImporterRequest_ItemValidationError) Field

Field function returns field value.

func (OrderImporterRequest_ItemValidationError) Key

Key function returns key value.

func (OrderImporterRequest_ItemValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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