catalog

package
v0.0.0-...-7a1ab64 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Topic     = "catalog"
	Partition = 0
)

Variables

This section is empty.

Functions

func NewContext

func NewContext(brokers *[]string, cfg *sarama.Config) context

Types

type CatalogMessages

type CatalogMessages struct {
	// Types that are valid to be assigned to CatalogMessage:
	//	*CatalogMessages_Product
	CatalogMessage       isCatalogMessages_CatalogMessage `protobuf_oneof:"catalogMessage"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

func (*CatalogMessages) Descriptor

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

func (*CatalogMessages) GetCatalogMessage

func (m *CatalogMessages) GetCatalogMessage() isCatalogMessages_CatalogMessage

func (*CatalogMessages) GetProduct

func (m *CatalogMessages) GetProduct() *Product

func (*CatalogMessages) ProtoMessage

func (*CatalogMessages) ProtoMessage()

func (*CatalogMessages) Reset

func (m *CatalogMessages) Reset()

func (*CatalogMessages) String

func (m *CatalogMessages) String() string

func (*CatalogMessages) XXX_DiscardUnknown

func (m *CatalogMessages) XXX_DiscardUnknown()

func (*CatalogMessages) XXX_Marshal

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

func (*CatalogMessages) XXX_Merge

func (dst *CatalogMessages) XXX_Merge(src proto.Message)

func (*CatalogMessages) XXX_OneofFuncs

func (*CatalogMessages) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*CatalogMessages) XXX_Size

func (m *CatalogMessages) XXX_Size() int

func (*CatalogMessages) XXX_Unmarshal

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

type CatalogMessages_Product

type CatalogMessages_Product struct {
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3,oneof"`
}

type CatalogPage

type CatalogPage struct {
	Products             []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	TotalItems           int64      `protobuf:"varint,2,opt,name=totalItems,proto3" json:"totalItems,omitempty"`
	TotalPages           int64      `protobuf:"varint,3,opt,name=totalPages,proto3" json:"totalPages,omitempty"`
	CurrentPage          int64      `protobuf:"varint,4,opt,name=currentPage,proto3" json:"currentPage,omitempty"`
	SetPageTo            int64      `protobuf:"varint,5,opt,name=setPageTo,proto3" json:"setPageTo,omitempty"`
	Sorting              string     `protobuf:"bytes,6,opt,name=sorting,proto3" json:"sorting,omitempty"`
	Filtering            string     `protobuf:"bytes,7,opt,name=filtering,proto3" json:"filtering,omitempty"`
	ItemsPerPage         int64      `protobuf:"varint,8,opt,name=itemsPerPage,proto3" json:"itemsPerPage,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*CatalogPage) Descriptor

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

func (*CatalogPage) GetCurrentPage

func (m *CatalogPage) GetCurrentPage() int64

func (*CatalogPage) GetFiltering

func (m *CatalogPage) GetFiltering() string

func (*CatalogPage) GetItemsPerPage

func (m *CatalogPage) GetItemsPerPage() int64

func (*CatalogPage) GetProducts

func (m *CatalogPage) GetProducts() []*Product

func (*CatalogPage) GetSetPageTo

func (m *CatalogPage) GetSetPageTo() int64

func (*CatalogPage) GetSorting

func (m *CatalogPage) GetSorting() string

func (*CatalogPage) GetTotalItems

func (m *CatalogPage) GetTotalItems() int64

func (*CatalogPage) GetTotalPages

func (m *CatalogPage) GetTotalPages() int64

func (*CatalogPage) ProtoMessage

func (*CatalogPage) ProtoMessage()

func (*CatalogPage) Reset

func (m *CatalogPage) Reset()

func (*CatalogPage) String

func (m *CatalogPage) String() string

func (*CatalogPage) XXX_DiscardUnknown

func (m *CatalogPage) XXX_DiscardUnknown()

func (*CatalogPage) XXX_Marshal

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

func (*CatalogPage) XXX_Merge

func (dst *CatalogPage) XXX_Merge(src proto.Message)

func (*CatalogPage) XXX_Size

func (m *CatalogPage) XXX_Size() int

func (*CatalogPage) XXX_Unmarshal

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

type Product

type Product struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Price                int64    `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	Title                string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description          string   `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Longtext             string   `protobuf:"bytes,5,opt,name=longtext,proto3" json:"longtext,omitempty"`
	Category             string   `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"`
	SmallImageURL        string   `protobuf:"bytes,7,opt,name=smallImageURL,proto3" json:"smallImageURL,omitempty"`
	LargeImageURL        string   `protobuf:"bytes,8,opt,name=largeImageURL,proto3" json:"largeImageURL,omitempty"`
	Disabled             bool     `protobuf:"varint,9,opt,name=disabled,proto3" json:"disabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Product) Descriptor

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

func (*Product) GetCategory

func (m *Product) GetCategory() string

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetDisabled

func (m *Product) GetDisabled() bool

func (*Product) GetId

func (m *Product) GetId() string

func (*Product) GetLargeImageURL

func (m *Product) GetLargeImageURL() string

func (*Product) GetLongtext

func (m *Product) GetLongtext() string

func (*Product) GetPrice

func (m *Product) GetPrice() int64

func (*Product) GetSmallImageURL

func (m *Product) GetSmallImageURL() string

func (*Product) GetTitle

func (m *Product) GetTitle() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) String

func (m *Product) String() string

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

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

func (*Product) XXX_Merge

func (dst *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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