pb

package
v0.0.0-...-5e0dbef Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCatalogServiceServer

func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer)

Types

type CatalogServiceClient

type CatalogServiceClient interface {
	PostProduct(ctx context.Context, in *PostProductRequest, opts ...grpc.CallOption) (*PostProductResponse, error)
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error)
	GetProducts(ctx context.Context, in *GetProductsRequest, opts ...grpc.CallOption) (*GetProductsResponse, error)
}

CatalogServiceClient is the client API for CatalogService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCatalogServiceClient

func NewCatalogServiceClient(cc *grpc.ClientConn) CatalogServiceClient

type CatalogServiceServer

type CatalogServiceServer interface {
	PostProduct(context.Context, *PostProductRequest) (*PostProductResponse, error)
	GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
	GetProducts(context.Context, *GetProductsRequest) (*GetProductsResponse, error)
}

CatalogServiceServer is the server API for CatalogService service.

type GetProductRequest

type GetProductRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetProductRequest) Descriptor

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

func (*GetProductRequest) GetId

func (m *GetProductRequest) GetId() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) Reset

func (m *GetProductRequest) Reset()

func (*GetProductRequest) String

func (m *GetProductRequest) String() string

func (*GetProductRequest) XXX_DiscardUnknown

func (m *GetProductRequest) XXX_DiscardUnknown()

func (*GetProductRequest) XXX_Marshal

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

func (*GetProductRequest) XXX_Merge

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

func (*GetProductRequest) XXX_Size

func (m *GetProductRequest) XXX_Size() int

func (*GetProductRequest) XXX_Unmarshal

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

type GetProductResponse

type GetProductResponse struct {
	Product              *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetProductResponse) Descriptor

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

func (*GetProductResponse) GetProduct

func (m *GetProductResponse) GetProduct() *Product

func (*GetProductResponse) ProtoMessage

func (*GetProductResponse) ProtoMessage()

func (*GetProductResponse) Reset

func (m *GetProductResponse) Reset()

func (*GetProductResponse) String

func (m *GetProductResponse) String() string

func (*GetProductResponse) XXX_DiscardUnknown

func (m *GetProductResponse) XXX_DiscardUnknown()

func (*GetProductResponse) XXX_Marshal

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

func (*GetProductResponse) XXX_Merge

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

func (*GetProductResponse) XXX_Size

func (m *GetProductResponse) XXX_Size() int

func (*GetProductResponse) XXX_Unmarshal

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

type GetProductsRequest

type GetProductsRequest struct {
	Skip                 uint64   `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"`
	Take                 uint64   `protobuf:"varint,2,opt,name=take,proto3" json:"take,omitempty"`
	Ids                  []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"`
	Query                string   `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetProductsRequest) Descriptor

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

func (*GetProductsRequest) GetIds

func (m *GetProductsRequest) GetIds() []string

func (*GetProductsRequest) GetQuery

func (m *GetProductsRequest) GetQuery() string

func (*GetProductsRequest) GetSkip

func (m *GetProductsRequest) GetSkip() uint64

func (*GetProductsRequest) GetTake

func (m *GetProductsRequest) GetTake() uint64

func (*GetProductsRequest) ProtoMessage

func (*GetProductsRequest) ProtoMessage()

func (*GetProductsRequest) Reset

func (m *GetProductsRequest) Reset()

func (*GetProductsRequest) String

func (m *GetProductsRequest) String() string

func (*GetProductsRequest) XXX_DiscardUnknown

func (m *GetProductsRequest) XXX_DiscardUnknown()

func (*GetProductsRequest) XXX_Marshal

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

func (*GetProductsRequest) XXX_Merge

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

func (*GetProductsRequest) XXX_Size

func (m *GetProductsRequest) XXX_Size() int

func (*GetProductsRequest) XXX_Unmarshal

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

type GetProductsResponse

type GetProductsResponse struct {
	Products             []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetProductsResponse) Descriptor

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

func (*GetProductsResponse) GetProducts

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

func (*GetProductsResponse) ProtoMessage

func (*GetProductsResponse) ProtoMessage()

func (*GetProductsResponse) Reset

func (m *GetProductsResponse) Reset()

func (*GetProductsResponse) String

func (m *GetProductsResponse) String() string

func (*GetProductsResponse) XXX_DiscardUnknown

func (m *GetProductsResponse) XXX_DiscardUnknown()

func (*GetProductsResponse) XXX_Marshal

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

func (*GetProductsResponse) XXX_Merge

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

func (*GetProductsResponse) XXX_Size

func (m *GetProductsResponse) XXX_Size() int

func (*GetProductsResponse) XXX_Unmarshal

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

type PostProductRequest

type PostProductRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Price                float64  `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PostProductRequest) Descriptor

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

func (*PostProductRequest) GetDescription

func (m *PostProductRequest) GetDescription() string

func (*PostProductRequest) GetName

func (m *PostProductRequest) GetName() string

func (*PostProductRequest) GetPrice

func (m *PostProductRequest) GetPrice() float64

func (*PostProductRequest) ProtoMessage

func (*PostProductRequest) ProtoMessage()

func (*PostProductRequest) Reset

func (m *PostProductRequest) Reset()

func (*PostProductRequest) String

func (m *PostProductRequest) String() string

func (*PostProductRequest) XXX_DiscardUnknown

func (m *PostProductRequest) XXX_DiscardUnknown()

func (*PostProductRequest) XXX_Marshal

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

func (*PostProductRequest) XXX_Merge

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

func (*PostProductRequest) XXX_Size

func (m *PostProductRequest) XXX_Size() int

func (*PostProductRequest) XXX_Unmarshal

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

type PostProductResponse

type PostProductResponse struct {
	Product              *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PostProductResponse) Descriptor

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

func (*PostProductResponse) GetProduct

func (m *PostProductResponse) GetProduct() *Product

func (*PostProductResponse) ProtoMessage

func (*PostProductResponse) ProtoMessage()

func (*PostProductResponse) Reset

func (m *PostProductResponse) Reset()

func (*PostProductResponse) String

func (m *PostProductResponse) String() string

func (*PostProductResponse) XXX_DiscardUnknown

func (m *PostProductResponse) XXX_DiscardUnknown()

func (*PostProductResponse) XXX_Marshal

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

func (*PostProductResponse) XXX_Merge

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

func (*PostProductResponse) XXX_Size

func (m *PostProductResponse) XXX_Size() int

func (*PostProductResponse) XXX_Unmarshal

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

type Product

type Product 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"`
	Price                float64  `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Product) Descriptor

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

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetId

func (m *Product) GetId() string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetPrice

func (m *Product) GetPrice() float64

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 (m *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

type UnimplementedCatalogServiceServer

type UnimplementedCatalogServiceServer struct {
}

UnimplementedCatalogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCatalogServiceServer) GetProduct

func (*UnimplementedCatalogServiceServer) GetProducts

func (*UnimplementedCatalogServiceServer) PostProduct

Jump to

Keyboard shortcuts

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