Versions in this module Expand all Collapse all v0 v0.1.0 Oct 14, 2018 Changes in this version + var ErrIntOverflowProduct = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthProduct = fmt.Errorf("proto: negative length found during unmarshaling") + func RegisterProductServiceServer(s *grpc.Server, srv ProductServiceServer) + type DeleteRequest struct + Id string + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (m *DeleteRequest) GetId() string + func (m *DeleteRequest) Marshal() (dAtA []byte, err error) + func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) + func (m *DeleteRequest) Reset() + func (m *DeleteRequest) Size() (n int) + func (m *DeleteRequest) String() string + func (m *DeleteRequest) Unmarshal(dAtA []byte) error + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Marshal() (dAtA []byte, err error) + func (m *Empty) MarshalTo(dAtA []byte) (int, error) + func (m *Empty) Reset() + func (m *Empty) Size() (n int) + func (m *Empty) String() string + func (m *Empty) Unmarshal(dAtA []byte) error + type GetRequest struct + Id string + func (*GetRequest) Descriptor() ([]byte, []int) + func (*GetRequest) ProtoMessage() + func (m *GetRequest) GetId() string + func (m *GetRequest) Marshal() (dAtA []byte, err error) + func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetRequest) Reset() + func (m *GetRequest) Size() (n int) + func (m *GetRequest) String() string + func (m *GetRequest) Unmarshal(dAtA []byte) error + type ListRequest struct + Limit int64 + Page int64 + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (m *ListRequest) GetLimit() int64 + func (m *ListRequest) GetPage() int64 + func (m *ListRequest) Marshal() (dAtA []byte, err error) + func (m *ListRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ListRequest) Reset() + func (m *ListRequest) Size() (n int) + func (m *ListRequest) String() string + func (m *ListRequest) Unmarshal(dAtA []byte) error + type NewRequest struct + Active bool + Attributes []string + Description string + Images []string + Metadata map[string]string + Name string + Shippable bool + Url string + func (*NewRequest) Descriptor() ([]byte, []int) + func (*NewRequest) ProtoMessage() + func (m *NewRequest) GetActive() bool + func (m *NewRequest) GetAttributes() []string + func (m *NewRequest) GetDescription() string + func (m *NewRequest) GetImages() []string + func (m *NewRequest) GetMetadata() map[string]string + func (m *NewRequest) GetName() string + func (m *NewRequest) GetShippable() bool + func (m *NewRequest) GetUrl() string + func (m *NewRequest) Marshal() (dAtA []byte, err error) + func (m *NewRequest) MarshalTo(dAtA []byte) (int, error) + func (m *NewRequest) Reset() + func (m *NewRequest) Size() (n int) + func (m *NewRequest) String() string + func (m *NewRequest) Unmarshal(dAtA []byte) error + type Product struct + Active bool + Attributes []string + Created int64 + Description string + Id string + Images []string + Metadata map[string]string + Name string + Shippable bool + Skus []*skupb.Sku + Updated int64 + Url string + func (*Product) Descriptor() ([]byte, []int) + func (*Product) ProtoMessage() + func (m *Product) GetActive() bool + func (m *Product) GetAttributes() []string + func (m *Product) GetCreated() int64 + func (m *Product) GetDescription() string + func (m *Product) GetId() string + func (m *Product) GetImages() []string + func (m *Product) GetMetadata() map[string]string + func (m *Product) GetName() string + func (m *Product) GetShippable() bool + func (m *Product) GetSkus() []*skupb.Sku + func (m *Product) GetUpdated() int64 + func (m *Product) GetUrl() string + func (m *Product) Marshal() (dAtA []byte, err error) + func (m *Product) MarshalTo(dAtA []byte) (int, error) + func (m *Product) Reset() + func (m *Product) Size() (n int) + func (m *Product) String() string + func (m *Product) Unmarshal(dAtA []byte) error + type ProductList struct + Products []*Product + Total int32 + func (*ProductList) Descriptor() ([]byte, []int) + func (*ProductList) ProtoMessage() + func (m *ProductList) GetProducts() []*Product + func (m *ProductList) GetTotal() int32 + func (m *ProductList) Marshal() (dAtA []byte, err error) + func (m *ProductList) MarshalTo(dAtA []byte) (int, error) + func (m *ProductList) Reset() + func (m *ProductList) Size() (n int) + func (m *ProductList) String() string + func (m *ProductList) Unmarshal(dAtA []byte) error + type ProductServiceClient interface + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) + Get func(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Product, error) + List func(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ProductList, error) + New func(ctx context.Context, in *NewRequest, opts ...grpc.CallOption) (*Product, error) + Update func(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*Product, error) + func NewProductServiceClient(cc *grpc.ClientConn) ProductServiceClient + type ProductServiceServer interface + Delete func(context.Context, *DeleteRequest) (*Empty, error) + Get func(context.Context, *GetRequest) (*Product, error) + List func(context.Context, *ListRequest) (*ProductList, error) + New func(context.Context, *NewRequest) (*Product, error) + Update func(context.Context, *UpdateRequest) (*Product, error) + type UpdateRequest struct + Active bool + Attributes []string + Description string + Id string + Images []string + Metadata map[string]string + Name string + Shippable bool + Url string + func (*UpdateRequest) Descriptor() ([]byte, []int) + func (*UpdateRequest) ProtoMessage() + func (m *UpdateRequest) GetActive() bool + func (m *UpdateRequest) GetAttributes() []string + func (m *UpdateRequest) GetDescription() string + func (m *UpdateRequest) GetId() string + func (m *UpdateRequest) GetImages() []string + func (m *UpdateRequest) GetMetadata() map[string]string + func (m *UpdateRequest) GetName() string + func (m *UpdateRequest) GetShippable() bool + func (m *UpdateRequest) GetUrl() string + func (m *UpdateRequest) Marshal() (dAtA []byte, err error) + func (m *UpdateRequest) MarshalTo(dAtA []byte) (int, error) + func (m *UpdateRequest) Reset() + func (m *UpdateRequest) Size() (n int) + func (m *UpdateRequest) String() string + func (m *UpdateRequest) Unmarshal(dAtA []byte) error