Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer)
- type ListProductsForTenantRequest
- func (*ListProductsForTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsForTenantRequest) GetTenant() string
- func (*ListProductsForTenantRequest) ProtoMessage()
- func (x *ListProductsForTenantRequest) ProtoReflect() protoreflect.Message
- func (x *ListProductsForTenantRequest) Reset()
- func (x *ListProductsForTenantRequest) String() string
- type ListProductsForTenantResponse
- func (*ListProductsForTenantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsForTenantResponse) GetProducts() []*Product
- func (*ListProductsForTenantResponse) ProtoMessage()
- func (x *ListProductsForTenantResponse) ProtoReflect() protoreflect.Message
- func (x *ListProductsForTenantResponse) Reset()
- func (x *ListProductsForTenantResponse) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetBanner() *v0.Image
- func (x *Product) GetDescription() string
- func (x *Product) GetIcon() *v0.Image
- func (x *Product) GetId() string
- func (x *Product) GetImages() []*v0.Image
- func (x *Product) GetName() string
- func (x *Product) GetProductUrl() string
- func (x *Product) GetSubtitle() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type ProductServiceClient
- type ProductServiceServer
- type UnimplementedProductServiceServer
- type UnsafeProductServiceServer
Constants ¶
const (
ProductService_ListProductsForTenant_FullMethodName = "/wgtwo.products.v0.ProductService/ListProductsForTenant"
)
Variables ¶
var File_wgtwo_products_v0_products_proto protoreflect.FileDescriptor
var ProductService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wgtwo.products.v0.ProductService", HandlerType: (*ProductServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListProductsForTenant", Handler: _ProductService_ListProductsForTenant_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wgtwo/products/v0/products.proto", }
ProductService_ServiceDesc is the grpc.ServiceDesc for ProductService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProductServiceServer ¶
func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer)
Types ¶
type ListProductsForTenantRequest ¶
type ListProductsForTenantRequest struct { // Required: Show products available for tenant Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` // contains filtered or unexported fields }
func (*ListProductsForTenantRequest) Descriptor
deprecated
func (*ListProductsForTenantRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsForTenantRequest.ProtoReflect.Descriptor instead.
func (*ListProductsForTenantRequest) GetTenant ¶
func (x *ListProductsForTenantRequest) GetTenant() string
func (*ListProductsForTenantRequest) ProtoMessage ¶
func (*ListProductsForTenantRequest) ProtoMessage()
func (*ListProductsForTenantRequest) ProtoReflect ¶
func (x *ListProductsForTenantRequest) ProtoReflect() protoreflect.Message
func (*ListProductsForTenantRequest) Reset ¶
func (x *ListProductsForTenantRequest) Reset()
func (*ListProductsForTenantRequest) String ¶
func (x *ListProductsForTenantRequest) String() string
type ListProductsForTenantResponse ¶
type ListProductsForTenantResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*ListProductsForTenantResponse) Descriptor
deprecated
func (*ListProductsForTenantResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsForTenantResponse.ProtoReflect.Descriptor instead.
func (*ListProductsForTenantResponse) GetProducts ¶
func (x *ListProductsForTenantResponse) GetProducts() []*Product
func (*ListProductsForTenantResponse) ProtoMessage ¶
func (*ListProductsForTenantResponse) ProtoMessage()
func (*ListProductsForTenantResponse) ProtoReflect ¶
func (x *ListProductsForTenantResponse) ProtoReflect() protoreflect.Message
func (*ListProductsForTenantResponse) Reset ¶
func (x *ListProductsForTenantResponse) Reset()
func (*ListProductsForTenantResponse) String ¶
func (x *ListProductsForTenantResponse) String() string
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"` Subtitle string `protobuf:"bytes,3,opt,name=subtitle,proto3" json:"subtitle,omitempty"` ProductUrl string `protobuf:"bytes,4,opt,name=product_url,json=productUrl,proto3" json:"product_url,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Icon *v0.Image `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"` Banner *v0.Image `protobuf:"bytes,7,opt,name=banner,proto3" json:"banner,omitempty"` Images []*v0.Image `protobuf:"bytes,8,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetDescription ¶
func (*Product) GetProductUrl ¶
func (*Product) GetSubtitle ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type ProductServiceClient ¶
type ProductServiceClient interface {
ListProductsForTenant(ctx context.Context, in *ListProductsForTenantRequest, opts ...grpc.CallOption) (*ListProductsForTenantResponse, error)
}
ProductServiceClient is the client API for ProductService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewProductServiceClient ¶
func NewProductServiceClient(cc grpc.ClientConnInterface) ProductServiceClient
type ProductServiceServer ¶
type ProductServiceServer interface {
ListProductsForTenant(context.Context, *ListProductsForTenantRequest) (*ListProductsForTenantResponse, error)
}
ProductServiceServer is the server API for ProductService service. All implementations should embed UnimplementedProductServiceServer for forward compatibility.
type UnimplementedProductServiceServer ¶
type UnimplementedProductServiceServer struct{}
UnimplementedProductServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedProductServiceServer) ListProductsForTenant ¶
func (UnimplementedProductServiceServer) ListProductsForTenant(context.Context, *ListProductsForTenantRequest) (*ListProductsForTenantResponse, error)
type UnsafeProductServiceServer ¶
type UnsafeProductServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProductServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProductServiceServer will result in compilation errors.