v0

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductService_ListProductsForTenant_FullMethodName = "/wgtwo.products.v0.ProductService/ListProductsForTenant"
)

Variables

View Source
var File_wgtwo_products_v0_products_proto protoreflect.FileDescriptor
View Source
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 (*ListProductsForTenantRequest) Reset

func (x *ListProductsForTenantRequest) Reset()

func (*ListProductsForTenantRequest) 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 (*ListProductsForTenantResponse) Reset

func (x *ListProductsForTenantResponse) Reset()

func (*ListProductsForTenantResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetBanner added in v0.2.0

func (x *Product) GetBanner() *v0.Image

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetIcon added in v0.2.0

func (x *Product) GetIcon() *v0.Image

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetImages added in v0.2.0

func (x *Product) GetImages() []*v0.Image

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetProductUrl

func (x *Product) GetProductUrl() string

func (*Product) GetSubtitle

func (x *Product) GetSubtitle() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

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.

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.

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.

Jump to

Keyboard shortcuts

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