Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetDescription() string
- func (x *Account) GetId() string
- func (x *Account) GetName() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- type AccountValidationError
- type Currency
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetBody() string
- func (x *Order) GetChannel() string
- func (x *Order) GetCurrency() Currency
- func (x *Order) GetId() string
- func (x *Order) GetSubject() *wrappers.StringValue
- func (x *Order) GetTotalPrice() int32
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- func (m *Order) Validate() error
- type OrderValidationError
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetCurrency() Currency
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetName() string
- func (x *Product) GetPrice() int32
- func (x *Product) GetSlug() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- func (m *Product) Validate() error
- type ProductValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Currency_name = map[int32]string{ 0: "CURRENCY_USD_UNSPECIFIED", 1: "CURRENCY_INR", } Currency_value = map[string]int32{ "CURRENCY_USD_UNSPECIFIED": 0, "CURRENCY_INR": 1, } )
Enum value maps for Currency.
var File_yeti_common_v1_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account 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"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetDescription ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type Currency ¶
type Currency int32
func (Currency) Descriptor ¶
func (Currency) Descriptor() protoreflect.EnumDescriptor
func (Currency) EnumDescriptor
deprecated
func (Currency) Number ¶
func (x Currency) Number() protoreflect.EnumNumber
func (Currency) Type ¶
func (Currency) Type() protoreflect.EnumType
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Subject *wrappers.StringValue `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` TotalPrice int32 `protobuf:"varint,4,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` Currency Currency `protobuf:"varint,5,opt,name=currency,proto3,enum=yeti.common.v1.Currency" json:"currency,omitempty"` Channel string `protobuf:"bytes,6,opt,name=channel,proto3" json:"channel,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetChannel ¶
func (*Order) GetCurrency ¶
func (*Order) GetSubject ¶
func (x *Order) GetSubject() *wrappers.StringValue
func (*Order) GetTotalPrice ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderValidationError ¶
type OrderValidationError struct {
// contains filtered or unexported fields
}
OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.
func (OrderValidationError) Cause ¶
func (e OrderValidationError) Cause() error
Cause function returns cause value.
func (OrderValidationError) Error ¶
func (e OrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderValidationError) ErrorName ¶
func (e OrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderValidationError) Field ¶
func (e OrderValidationError) Field() string
Field function returns field value.
func (OrderValidationError) Key ¶
func (e OrderValidationError) Key() bool
Key function returns key value.
func (OrderValidationError) Reason ¶
func (e OrderValidationError) Reason() string
Reason function returns reason value.
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Currency Currency `protobuf:"varint,5,opt,name=currency,proto3,enum=yeti.common.v1.Currency" json:"currency,omitempty"` Price int32 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetCurrency ¶
func (*Product) GetDescription ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type ProductValidationError ¶
type ProductValidationError struct {
// contains filtered or unexported fields
}
ProductValidationError is the validation error returned by Product.Validate if the designated constraints aren't met.
func (ProductValidationError) Cause ¶
func (e ProductValidationError) Cause() error
Cause function returns cause value.
func (ProductValidationError) Error ¶
func (e ProductValidationError) Error() string
Error satisfies the builtin error interface
func (ProductValidationError) ErrorName ¶
func (e ProductValidationError) ErrorName() string
ErrorName returns error name.
func (ProductValidationError) Field ¶
func (e ProductValidationError) Field() string
Field function returns field value.
func (ProductValidationError) Key ¶
func (e ProductValidationError) Key() bool
Key function returns key value.
func (ProductValidationError) Reason ¶
func (e ProductValidationError) Reason() string
Reason function returns reason value.