Documentation ¶
Index ¶
- func RegisterCatalogServiceServer(s *grpc.Server, srv CatalogServiceServer)
- type CatalogServiceClient
- type CatalogServiceServer
- type GetProductRequest
- func (*GetProductRequest) Descriptor() ([]byte, []int)
- func (m *GetProductRequest) GetId() string
- func (*GetProductRequest) ProtoMessage()
- func (m *GetProductRequest) Reset()
- func (m *GetProductRequest) String() string
- func (m *GetProductRequest) XXX_DiscardUnknown()
- func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductRequest) XXX_Merge(src proto.Message)
- func (m *GetProductRequest) XXX_Size() int
- func (m *GetProductRequest) XXX_Unmarshal(b []byte) error
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)
- func (m *GetProductResponse) GetProduct() *Product
- func (*GetProductResponse) ProtoMessage()
- func (m *GetProductResponse) Reset()
- func (m *GetProductResponse) String() string
- func (m *GetProductResponse) XXX_DiscardUnknown()
- func (m *GetProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductResponse) XXX_Merge(src proto.Message)
- func (m *GetProductResponse) XXX_Size() int
- func (m *GetProductResponse) XXX_Unmarshal(b []byte) error
- type GetProductsRequest
- func (*GetProductsRequest) Descriptor() ([]byte, []int)
- func (m *GetProductsRequest) GetIds() []string
- func (m *GetProductsRequest) GetQuery() string
- func (m *GetProductsRequest) GetSkip() uint64
- func (m *GetProductsRequest) GetTake() uint64
- func (*GetProductsRequest) ProtoMessage()
- func (m *GetProductsRequest) Reset()
- func (m *GetProductsRequest) String() string
- func (m *GetProductsRequest) XXX_DiscardUnknown()
- func (m *GetProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductsRequest) XXX_Merge(src proto.Message)
- func (m *GetProductsRequest) XXX_Size() int
- func (m *GetProductsRequest) XXX_Unmarshal(b []byte) error
- type GetProductsResponse
- func (*GetProductsResponse) Descriptor() ([]byte, []int)
- func (m *GetProductsResponse) GetProducts() []*Product
- func (*GetProductsResponse) ProtoMessage()
- func (m *GetProductsResponse) Reset()
- func (m *GetProductsResponse) String() string
- func (m *GetProductsResponse) XXX_DiscardUnknown()
- func (m *GetProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductsResponse) XXX_Merge(src proto.Message)
- func (m *GetProductsResponse) XXX_Size() int
- func (m *GetProductsResponse) XXX_Unmarshal(b []byte) error
- type PostProductRequest
- func (*PostProductRequest) Descriptor() ([]byte, []int)
- func (m *PostProductRequest) GetDescription() string
- func (m *PostProductRequest) GetName() string
- func (m *PostProductRequest) GetPrice() float64
- func (*PostProductRequest) ProtoMessage()
- func (m *PostProductRequest) Reset()
- func (m *PostProductRequest) String() string
- func (m *PostProductRequest) XXX_DiscardUnknown()
- func (m *PostProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostProductRequest) XXX_Merge(src proto.Message)
- func (m *PostProductRequest) XXX_Size() int
- func (m *PostProductRequest) XXX_Unmarshal(b []byte) error
- type PostProductResponse
- func (*PostProductResponse) Descriptor() ([]byte, []int)
- func (m *PostProductResponse) GetProduct() *Product
- func (*PostProductResponse) ProtoMessage()
- func (m *PostProductResponse) Reset()
- func (m *PostProductResponse) String() string
- func (m *PostProductResponse) XXX_DiscardUnknown()
- func (m *PostProductResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostProductResponse) XXX_Merge(src proto.Message)
- func (m *PostProductResponse) XXX_Size() int
- func (m *PostProductResponse) XXX_Unmarshal(b []byte) error
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetDescription() string
- func (m *Product) GetId() string
- func (m *Product) GetName() string
- func (m *Product) GetPrice() float64
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) String() string
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type UnimplementedCatalogServiceServer
- func (*UnimplementedCatalogServiceServer) GetProduct(ctx context.Context, req *GetProductRequest) (*GetProductResponse, error)
- func (*UnimplementedCatalogServiceServer) GetProducts(ctx context.Context, req *GetProductsRequest) (*GetProductsResponse, error)
- func (*UnimplementedCatalogServiceServer) PostProduct(ctx context.Context, req *PostProductRequest) (*PostProductResponse, error)
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) GetDescription ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type UnimplementedCatalogServiceServer ¶
type UnimplementedCatalogServiceServer struct { }
UnimplementedCatalogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCatalogServiceServer) GetProduct ¶
func (*UnimplementedCatalogServiceServer) GetProduct(ctx context.Context, req *GetProductRequest) (*GetProductResponse, error)
func (*UnimplementedCatalogServiceServer) GetProducts ¶
func (*UnimplementedCatalogServiceServer) GetProducts(ctx context.Context, req *GetProductsRequest) (*GetProductsResponse, error)
func (*UnimplementedCatalogServiceServer) PostProduct ¶
func (*UnimplementedCatalogServiceServer) PostProduct(ctx context.Context, req *PostProductRequest) (*PostProductResponse, error)
Click to show internal directories.
Click to hide internal directories.