shared

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeliveryType_name = map[int32]string{
	0:   "delivery_type_null",
	100: "takeaway",
	200: "courier",
	300: "outsource_courier",
}
View Source
var DeliveryType_value = map[string]int32{
	"delivery_type_null": 0,
	"takeaway":           100,
	"courier":            200,
	"outsource_courier":  300,
}
View Source
var NullableBool_name = map[int32]string{
	0: "BOOL_NIL",
	1: "BOOL_TRUE",
	2: "BOOL_FALSE",
}
View Source
var NullableBool_value = map[string]int32{
	"BOOL_NIL":   0,
	"BOOL_TRUE":  1,
	"BOOL_FALSE": 2,
}
View Source
var OrderState_name = map[int32]string{
	0:    "order_state_null",
	100:  "processed",
	200:  "accepted_for_work",
	400:  "preparing",
	600:  "in_delivery",
	810:  "delivered",
	850:  "awaiting_takeaway",
	900:  "done",
	1100: "client_cancel",
	1200: "not_accepted_for_work",
	1400: "cant_prepared",
	1600: "delivery_rejection",
	1810: "undelivered",
	1850: "untakeaway",
}
View Source
var OrderState_value = map[string]int32{
	"order_state_null":      0,
	"processed":             100,
	"accepted_for_work":     200,
	"preparing":             400,
	"in_delivery":           600,
	"delivered":             810,
	"awaiting_takeaway":     850,
	"done":                  900,
	"client_cancel":         1100,
	"not_accepted_for_work": 1200,
	"cant_prepared":         1400,
	"delivery_rejection":    1600,
	"undelivered":           1810,
	"untakeaway":            1850,
}
View Source
var PaymentState_name = map[int32]string{
	0:   "payment_state_null",
	100: "not_payed",
	200: "cash_payed",
	300: "card_payed_in_block",
	350: "card_payed_debited",
	400: "ball_payed",
}
View Source
var PaymentState_value = map[string]int32{
	"payment_state_null":  0,
	"not_payed":           100,
	"cash_payed":          200,
	"card_payed_in_block": 300,
	"card_payed_debited":  350,
	"ball_payed":          400,
}

Functions

This section is empty.

Types

type DefaultFilter

type DefaultFilter struct {
	Lcid string `protobuf:"bytes,1,opt,name=lcid,proto3" json:"lcid"`
}

func (*DefaultFilter) Descriptor

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

func (*DefaultFilter) GetLcid

func (m *DefaultFilter) GetLcid() string

func (*DefaultFilter) ProtoMessage

func (*DefaultFilter) ProtoMessage()

func (*DefaultFilter) Reset

func (m *DefaultFilter) Reset()

func (*DefaultFilter) String

func (m *DefaultFilter) String() string

func (*DefaultFilter) Validate

func (m *DefaultFilter) Validate() error

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

func (*DefaultFilter) XXX_DiscardUnknown

func (m *DefaultFilter) XXX_DiscardUnknown()

func (*DefaultFilter) XXX_Marshal

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

func (*DefaultFilter) XXX_Merge

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

func (*DefaultFilter) XXX_Size

func (m *DefaultFilter) XXX_Size() int

func (*DefaultFilter) XXX_Unmarshal

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

type DefaultFilterValidationError

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

DefaultFilterValidationError is the validation error returned by DefaultFilter.Validate if the designated constraints aren't met.

func (DefaultFilterValidationError) Cause

Cause function returns cause value.

func (DefaultFilterValidationError) Error

Error satisfies the builtin error interface

func (DefaultFilterValidationError) ErrorName

func (e DefaultFilterValidationError) ErrorName() string

ErrorName returns error name.

func (DefaultFilterValidationError) Field

Field function returns field value.

func (DefaultFilterValidationError) Key

Key function returns key value.

func (DefaultFilterValidationError) Reason

Reason function returns reason value.

type DeliveryType

type DeliveryType int32
const (
	DeliveryType_delivery_type_null DeliveryType = 0
	DeliveryType_takeaway           DeliveryType = 100
	DeliveryType_courier            DeliveryType = 200
	DeliveryType_outsource_courier  DeliveryType = 300
)

func (DeliveryType) EnumDescriptor

func (DeliveryType) EnumDescriptor() ([]byte, []int)

func (DeliveryType) String

func (x DeliveryType) String() string

type ImageType

type ImageType struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Url  string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}

func (*ImageType) Descriptor

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

func (*ImageType) GetType

func (m *ImageType) GetType() string

func (*ImageType) GetUrl

func (m *ImageType) GetUrl() string

func (*ImageType) ProtoMessage

func (*ImageType) ProtoMessage()

func (*ImageType) Reset

func (m *ImageType) Reset()

func (*ImageType) String

func (m *ImageType) String() string

func (*ImageType) Validate

func (m *ImageType) Validate() error

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

func (*ImageType) XXX_DiscardUnknown

func (m *ImageType) XXX_DiscardUnknown()

func (*ImageType) XXX_Marshal

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

func (*ImageType) XXX_Merge

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

func (*ImageType) XXX_Size

func (m *ImageType) XXX_Size() int

func (*ImageType) XXX_Unmarshal

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

type ImageTypeValidationError

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

ImageTypeValidationError is the validation error returned by ImageType.Validate if the designated constraints aren't met.

func (ImageTypeValidationError) Cause

func (e ImageTypeValidationError) Cause() error

Cause function returns cause value.

func (ImageTypeValidationError) Error

func (e ImageTypeValidationError) Error() string

Error satisfies the builtin error interface

func (ImageTypeValidationError) ErrorName

func (e ImageTypeValidationError) ErrorName() string

ErrorName returns error name.

func (ImageTypeValidationError) Field

func (e ImageTypeValidationError) Field() string

Field function returns field value.

func (ImageTypeValidationError) Key

Key function returns key value.

func (ImageTypeValidationError) Reason

func (e ImageTypeValidationError) Reason() string

Reason function returns reason value.

type NullableBool

type NullableBool int32
const (
	NullableBool_BOOL_NIL   NullableBool = 0
	NullableBool_BOOL_TRUE  NullableBool = 1
	NullableBool_BOOL_FALSE NullableBool = 2
)

func (NullableBool) EnumDescriptor

func (NullableBool) EnumDescriptor() ([]byte, []int)

func (NullableBool) String

func (x NullableBool) String() string

type Opts

type Opts struct {
	DialTimeout    string `protobuf:"bytes,1,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty" mapstructure:"dial_timeout"`
	RequestTimeout string `` /* 134-byte string literal not displayed */
	Retries        int32  `protobuf:"varint,3,opt,name=retries,proto3" json:"retries,omitempty"`
}

func (*Opts) Descriptor

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

func (*Opts) GetDialTimeout

func (m *Opts) GetDialTimeout() string

func (*Opts) GetRequestTimeout

func (m *Opts) GetRequestTimeout() string

func (*Opts) GetRetries

func (m *Opts) GetRetries() int32

func (*Opts) ProtoMessage

func (*Opts) ProtoMessage()

func (*Opts) Reset

func (m *Opts) Reset()

func (*Opts) String

func (m *Opts) String() string

func (*Opts) Validate

func (m *Opts) Validate() error

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

func (*Opts) XXX_DiscardUnknown

func (m *Opts) XXX_DiscardUnknown()

func (*Opts) XXX_Marshal

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

func (*Opts) XXX_Merge

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

func (*Opts) XXX_Size

func (m *Opts) XXX_Size() int

func (*Opts) XXX_Unmarshal

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

type OptsValidationError

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

OptsValidationError is the validation error returned by Opts.Validate if the designated constraints aren't met.

func (OptsValidationError) Cause

func (e OptsValidationError) Cause() error

Cause function returns cause value.

func (OptsValidationError) Error

func (e OptsValidationError) Error() string

Error satisfies the builtin error interface

func (OptsValidationError) ErrorName

func (e OptsValidationError) ErrorName() string

ErrorName returns error name.

func (OptsValidationError) Field

func (e OptsValidationError) Field() string

Field function returns field value.

func (OptsValidationError) Key

func (e OptsValidationError) Key() bool

Key function returns key value.

func (OptsValidationError) Reason

func (e OptsValidationError) Reason() string

Reason function returns reason value.

type OrderState

type OrderState int32
const (
	OrderState_order_state_null      OrderState = 0
	OrderState_processed             OrderState = 100
	OrderState_accepted_for_work     OrderState = 200
	OrderState_preparing             OrderState = 400
	OrderState_in_delivery           OrderState = 600
	OrderState_delivered             OrderState = 810
	OrderState_awaiting_takeaway     OrderState = 850
	OrderState_done                  OrderState = 900
	OrderState_client_cancel         OrderState = 1100
	OrderState_not_accepted_for_work OrderState = 1200
	OrderState_cant_prepared         OrderState = 1400
	OrderState_delivery_rejection    OrderState = 1600
	OrderState_undelivered           OrderState = 1810
	OrderState_untakeaway            OrderState = 1850
)

func (OrderState) EnumDescriptor

func (OrderState) EnumDescriptor() ([]byte, []int)

func (OrderState) String

func (x OrderState) String() string

type PaymentState

type PaymentState int32
const (
	PaymentState_payment_state_null  PaymentState = 0
	PaymentState_not_payed           PaymentState = 100
	PaymentState_cash_payed          PaymentState = 200
	PaymentState_card_payed_in_block PaymentState = 300
	PaymentState_card_payed_debited  PaymentState = 350
	PaymentState_ball_payed          PaymentState = 400
)

func (PaymentState) EnumDescriptor

func (PaymentState) EnumDescriptor() ([]byte, []int)

func (PaymentState) String

func (x PaymentState) String() string

Jump to

Keyboard shortcuts

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