Documentation
¶
Overview ¶
Package storespb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterStoresServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterStoresServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StoresServiceClient) error
- func RegisterStoresServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterStoresServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StoresServiceServer) error
- func RegisterStoresServiceServer(s grpc.ServiceRegistrar, srv StoresServiceServer)
- type AddProductRequest
- func (*AddProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddProductRequest) GetDescription() string
- func (x *AddProductRequest) GetName() string
- func (x *AddProductRequest) GetPrice() float64
- func (x *AddProductRequest) GetSku() string
- func (x *AddProductRequest) GetStoreId() string
- func (*AddProductRequest) ProtoMessage()
- func (x *AddProductRequest) ProtoReflect() protoreflect.Message
- func (x *AddProductRequest) Reset()
- func (x *AddProductRequest) String() string
- type AddProductResponse
- type CreateStoreRequest
- func (*CreateStoreRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStoreRequest) GetLocation() string
- func (x *CreateStoreRequest) GetName() string
- func (*CreateStoreRequest) ProtoMessage()
- func (x *CreateStoreRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStoreRequest) Reset()
- func (x *CreateStoreRequest) String() string
- type CreateStoreResponse
- func (*CreateStoreResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStoreResponse) GetId() string
- func (*CreateStoreResponse) ProtoMessage()
- func (x *CreateStoreResponse) ProtoReflect() protoreflect.Message
- func (x *CreateStoreResponse) Reset()
- func (x *CreateStoreResponse) String() string
- type DisableParticipationRequest
- func (*DisableParticipationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisableParticipationRequest) GetId() string
- func (*DisableParticipationRequest) ProtoMessage()
- func (x *DisableParticipationRequest) ProtoReflect() protoreflect.Message
- func (x *DisableParticipationRequest) Reset()
- func (x *DisableParticipationRequest) String() string
- type DisableParticipationResponse
- func (*DisableParticipationResponse) Descriptor() ([]byte, []int)deprecated
- func (*DisableParticipationResponse) ProtoMessage()
- func (x *DisableParticipationResponse) ProtoReflect() protoreflect.Message
- func (x *DisableParticipationResponse) Reset()
- func (x *DisableParticipationResponse) String() string
- type EnableParticipationRequest
- func (*EnableParticipationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableParticipationRequest) GetId() string
- func (*EnableParticipationRequest) ProtoMessage()
- func (x *EnableParticipationRequest) ProtoReflect() protoreflect.Message
- func (x *EnableParticipationRequest) Reset()
- func (x *EnableParticipationRequest) String() string
- type EnableParticipationResponse
- type GetCatalogRequest
- type GetCatalogResponse
- func (*GetCatalogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCatalogResponse) GetProducts() []*Product
- func (*GetCatalogResponse) ProtoMessage()
- func (x *GetCatalogResponse) ProtoReflect() protoreflect.Message
- func (x *GetCatalogResponse) Reset()
- func (x *GetCatalogResponse) String() string
- type GetParticipatingStoresRequest
- func (*GetParticipatingStoresRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetParticipatingStoresRequest) ProtoMessage()
- func (x *GetParticipatingStoresRequest) ProtoReflect() protoreflect.Message
- func (x *GetParticipatingStoresRequest) Reset()
- func (x *GetParticipatingStoresRequest) String() string
- type GetParticipatingStoresResponse
- func (*GetParticipatingStoresResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetParticipatingStoresResponse) GetStores() []*Store
- func (*GetParticipatingStoresResponse) ProtoMessage()
- func (x *GetParticipatingStoresResponse) ProtoReflect() protoreflect.Message
- func (x *GetParticipatingStoresResponse) Reset()
- func (x *GetParticipatingStoresResponse) String() string
- type GetProductRequest
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductResponse) GetProduct() *Product
- func (*GetProductResponse) ProtoMessage()
- func (x *GetProductResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductResponse) Reset()
- func (x *GetProductResponse) String() string
- type GetStoreRequest
- type GetStoreResponse
- type GetStoresRequest
- type GetStoresResponse
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetName() string
- func (x *Product) GetPrice() float64
- func (x *Product) GetSku() string
- func (x *Product) GetStoreId() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type RemoveProductRequest
- func (*RemoveProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProductRequest) GetId() string
- func (*RemoveProductRequest) ProtoMessage()
- func (x *RemoveProductRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveProductRequest) Reset()
- func (x *RemoveProductRequest) String() string
- type RemoveProductResponse
- type Store
- func (*Store) Descriptor() ([]byte, []int)deprecated
- func (x *Store) GetId() string
- func (x *Store) GetLocation() string
- func (x *Store) GetName() string
- func (x *Store) GetParticipating() bool
- func (*Store) ProtoMessage()
- func (x *Store) ProtoReflect() protoreflect.Message
- func (x *Store) Reset()
- func (x *Store) String() string
- type StoresServiceClient
- type StoresServiceServer
- type UnimplementedStoresServiceServer
- func (UnimplementedStoresServiceServer) AddProduct(context.Context, *AddProductRequest) (*AddProductResponse, error)
- func (UnimplementedStoresServiceServer) CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
- func (UnimplementedStoresServiceServer) DisableParticipation(context.Context, *DisableParticipationRequest) (*DisableParticipationResponse, error)
- func (UnimplementedStoresServiceServer) EnableParticipation(context.Context, *EnableParticipationRequest) (*EnableParticipationResponse, error)
- func (UnimplementedStoresServiceServer) GetCatalog(context.Context, *GetCatalogRequest) (*GetCatalogResponse, error)
- func (UnimplementedStoresServiceServer) GetParticipatingStores(context.Context, *GetParticipatingStoresRequest) (*GetParticipatingStoresResponse, error)
- func (UnimplementedStoresServiceServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
- func (UnimplementedStoresServiceServer) GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
- func (UnimplementedStoresServiceServer) GetStores(context.Context, *GetStoresRequest) (*GetStoresResponse, error)
- func (UnimplementedStoresServiceServer) RemoveProduct(context.Context, *RemoveProductRequest) (*RemoveProductResponse, error)
- type UnsafeStoresServiceServer
Constants ¶
const ( StoresService_CreateStore_FullMethodName = "/storespb.StoresService/CreateStore" StoresService_GetStore_FullMethodName = "/storespb.StoresService/GetStore" StoresService_GetStores_FullMethodName = "/storespb.StoresService/GetStores" StoresService_EnableParticipation_FullMethodName = "/storespb.StoresService/EnableParticipation" StoresService_DisableParticipation_FullMethodName = "/storespb.StoresService/DisableParticipation" StoresService_GetParticipatingStores_FullMethodName = "/storespb.StoresService/GetParticipatingStores" StoresService_AddProduct_FullMethodName = "/storespb.StoresService/AddProduct" StoresService_RemoveProduct_FullMethodName = "/storespb.StoresService/RemoveProduct" StoresService_GetCatalog_FullMethodName = "/storespb.StoresService/GetCatalog" StoresService_GetProduct_FullMethodName = "/storespb.StoresService/GetProduct" )
Variables ¶
var File_storespb_api_proto protoreflect.FileDescriptor
var File_storespb_messages_proto protoreflect.FileDescriptor
var StoresService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "storespb.StoresService", HandlerType: (*StoresServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateStore", Handler: _StoresService_CreateStore_Handler, }, { MethodName: "GetStore", Handler: _StoresService_GetStore_Handler, }, { MethodName: "GetStores", Handler: _StoresService_GetStores_Handler, }, { MethodName: "EnableParticipation", Handler: _StoresService_EnableParticipation_Handler, }, { MethodName: "DisableParticipation", Handler: _StoresService_DisableParticipation_Handler, }, { MethodName: "GetParticipatingStores", Handler: _StoresService_GetParticipatingStores_Handler, }, { MethodName: "AddProduct", Handler: _StoresService_AddProduct_Handler, }, { MethodName: "RemoveProduct", Handler: _StoresService_RemoveProduct_Handler, }, { MethodName: "GetCatalog", Handler: _StoresService_GetCatalog_Handler, }, { MethodName: "GetProduct", Handler: _StoresService_GetProduct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "storespb/api.proto", }
StoresService_ServiceDesc is the grpc.ServiceDesc for StoresService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStoresServiceHandler ¶
func RegisterStoresServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterStoresServiceHandler registers the http handlers for service StoresService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterStoresServiceHandlerClient ¶
func RegisterStoresServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StoresServiceClient) error
RegisterStoresServiceHandlerClient registers the http handlers for service StoresService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StoresServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StoresServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StoresServiceClient" to call the correct interceptors.
func RegisterStoresServiceHandlerFromEndpoint ¶
func RegisterStoresServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterStoresServiceHandlerFromEndpoint is same as RegisterStoresServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterStoresServiceHandlerServer ¶
func RegisterStoresServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StoresServiceServer) error
RegisterStoresServiceHandlerServer registers the http handlers for service StoresService to "mux". UnaryRPC :call StoresServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterStoresServiceHandlerFromEndpoint instead.
func RegisterStoresServiceServer ¶
func RegisterStoresServiceServer(s grpc.ServiceRegistrar, srv StoresServiceServer)
Types ¶
type AddProductRequest ¶
type AddProductRequest struct { StoreId string `protobuf:"bytes,1,opt,name=store_id,json=storeId,proto3" json:"store_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"` Sku string `protobuf:"bytes,4,opt,name=sku,proto3" json:"sku,omitempty"` Price float64 `protobuf:"fixed64,5,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*AddProductRequest) Descriptor
deprecated
func (*AddProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddProductRequest.ProtoReflect.Descriptor instead.
func (*AddProductRequest) GetDescription ¶
func (x *AddProductRequest) GetDescription() string
func (*AddProductRequest) GetName ¶
func (x *AddProductRequest) GetName() string
func (*AddProductRequest) GetPrice ¶
func (x *AddProductRequest) GetPrice() float64
func (*AddProductRequest) GetSku ¶
func (x *AddProductRequest) GetSku() string
func (*AddProductRequest) GetStoreId ¶
func (x *AddProductRequest) GetStoreId() string
func (*AddProductRequest) ProtoMessage ¶
func (*AddProductRequest) ProtoMessage()
func (*AddProductRequest) ProtoReflect ¶
func (x *AddProductRequest) ProtoReflect() protoreflect.Message
func (*AddProductRequest) Reset ¶
func (x *AddProductRequest) Reset()
func (*AddProductRequest) String ¶
func (x *AddProductRequest) String() string
type AddProductResponse ¶
type AddProductResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddProductResponse) Descriptor
deprecated
func (*AddProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddProductResponse.ProtoReflect.Descriptor instead.
func (*AddProductResponse) GetId ¶
func (x *AddProductResponse) GetId() string
func (*AddProductResponse) ProtoMessage ¶
func (*AddProductResponse) ProtoMessage()
func (*AddProductResponse) ProtoReflect ¶
func (x *AddProductResponse) ProtoReflect() protoreflect.Message
func (*AddProductResponse) Reset ¶
func (x *AddProductResponse) Reset()
func (*AddProductResponse) String ¶
func (x *AddProductResponse) String() string
type CreateStoreRequest ¶
type CreateStoreRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
func (*CreateStoreRequest) Descriptor
deprecated
func (*CreateStoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateStoreRequest.ProtoReflect.Descriptor instead.
func (*CreateStoreRequest) GetLocation ¶
func (x *CreateStoreRequest) GetLocation() string
func (*CreateStoreRequest) GetName ¶
func (x *CreateStoreRequest) GetName() string
func (*CreateStoreRequest) ProtoMessage ¶
func (*CreateStoreRequest) ProtoMessage()
func (*CreateStoreRequest) ProtoReflect ¶
func (x *CreateStoreRequest) ProtoReflect() protoreflect.Message
func (*CreateStoreRequest) Reset ¶
func (x *CreateStoreRequest) Reset()
func (*CreateStoreRequest) String ¶
func (x *CreateStoreRequest) String() string
type CreateStoreResponse ¶
type CreateStoreResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateStoreResponse) Descriptor
deprecated
func (*CreateStoreResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateStoreResponse.ProtoReflect.Descriptor instead.
func (*CreateStoreResponse) GetId ¶
func (x *CreateStoreResponse) GetId() string
func (*CreateStoreResponse) ProtoMessage ¶
func (*CreateStoreResponse) ProtoMessage()
func (*CreateStoreResponse) ProtoReflect ¶
func (x *CreateStoreResponse) ProtoReflect() protoreflect.Message
func (*CreateStoreResponse) Reset ¶
func (x *CreateStoreResponse) Reset()
func (*CreateStoreResponse) String ¶
func (x *CreateStoreResponse) String() string
type DisableParticipationRequest ¶
type DisableParticipationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DisableParticipationRequest) Descriptor
deprecated
func (*DisableParticipationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisableParticipationRequest.ProtoReflect.Descriptor instead.
func (*DisableParticipationRequest) GetId ¶
func (x *DisableParticipationRequest) GetId() string
func (*DisableParticipationRequest) ProtoMessage ¶
func (*DisableParticipationRequest) ProtoMessage()
func (*DisableParticipationRequest) ProtoReflect ¶
func (x *DisableParticipationRequest) ProtoReflect() protoreflect.Message
func (*DisableParticipationRequest) Reset ¶
func (x *DisableParticipationRequest) Reset()
func (*DisableParticipationRequest) String ¶
func (x *DisableParticipationRequest) String() string
type DisableParticipationResponse ¶
type DisableParticipationResponse struct {
// contains filtered or unexported fields
}
func (*DisableParticipationResponse) Descriptor
deprecated
func (*DisableParticipationResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisableParticipationResponse.ProtoReflect.Descriptor instead.
func (*DisableParticipationResponse) ProtoMessage ¶
func (*DisableParticipationResponse) ProtoMessage()
func (*DisableParticipationResponse) ProtoReflect ¶
func (x *DisableParticipationResponse) ProtoReflect() protoreflect.Message
func (*DisableParticipationResponse) Reset ¶
func (x *DisableParticipationResponse) Reset()
func (*DisableParticipationResponse) String ¶
func (x *DisableParticipationResponse) String() string
type EnableParticipationRequest ¶
type EnableParticipationRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EnableParticipationRequest) Descriptor
deprecated
func (*EnableParticipationRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnableParticipationRequest.ProtoReflect.Descriptor instead.
func (*EnableParticipationRequest) GetId ¶
func (x *EnableParticipationRequest) GetId() string
func (*EnableParticipationRequest) ProtoMessage ¶
func (*EnableParticipationRequest) ProtoMessage()
func (*EnableParticipationRequest) ProtoReflect ¶
func (x *EnableParticipationRequest) ProtoReflect() protoreflect.Message
func (*EnableParticipationRequest) Reset ¶
func (x *EnableParticipationRequest) Reset()
func (*EnableParticipationRequest) String ¶
func (x *EnableParticipationRequest) String() string
type EnableParticipationResponse ¶
type EnableParticipationResponse struct {
// contains filtered or unexported fields
}
func (*EnableParticipationResponse) Descriptor
deprecated
func (*EnableParticipationResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnableParticipationResponse.ProtoReflect.Descriptor instead.
func (*EnableParticipationResponse) ProtoMessage ¶
func (*EnableParticipationResponse) ProtoMessage()
func (*EnableParticipationResponse) ProtoReflect ¶
func (x *EnableParticipationResponse) ProtoReflect() protoreflect.Message
func (*EnableParticipationResponse) Reset ¶
func (x *EnableParticipationResponse) Reset()
func (*EnableParticipationResponse) String ¶
func (x *EnableParticipationResponse) String() string
type GetCatalogRequest ¶
type GetCatalogRequest struct { StoreId string `protobuf:"bytes,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` // contains filtered or unexported fields }
func (*GetCatalogRequest) Descriptor
deprecated
func (*GetCatalogRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCatalogRequest.ProtoReflect.Descriptor instead.
func (*GetCatalogRequest) GetStoreId ¶
func (x *GetCatalogRequest) GetStoreId() string
func (*GetCatalogRequest) ProtoMessage ¶
func (*GetCatalogRequest) ProtoMessage()
func (*GetCatalogRequest) ProtoReflect ¶
func (x *GetCatalogRequest) ProtoReflect() protoreflect.Message
func (*GetCatalogRequest) Reset ¶
func (x *GetCatalogRequest) Reset()
func (*GetCatalogRequest) String ¶
func (x *GetCatalogRequest) String() string
type GetCatalogResponse ¶
type GetCatalogResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*GetCatalogResponse) Descriptor
deprecated
func (*GetCatalogResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCatalogResponse.ProtoReflect.Descriptor instead.
func (*GetCatalogResponse) GetProducts ¶
func (x *GetCatalogResponse) GetProducts() []*Product
func (*GetCatalogResponse) ProtoMessage ¶
func (*GetCatalogResponse) ProtoMessage()
func (*GetCatalogResponse) ProtoReflect ¶
func (x *GetCatalogResponse) ProtoReflect() protoreflect.Message
func (*GetCatalogResponse) Reset ¶
func (x *GetCatalogResponse) Reset()
func (*GetCatalogResponse) String ¶
func (x *GetCatalogResponse) String() string
type GetParticipatingStoresRequest ¶
type GetParticipatingStoresRequest struct {
// contains filtered or unexported fields
}
func (*GetParticipatingStoresRequest) Descriptor
deprecated
func (*GetParticipatingStoresRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetParticipatingStoresRequest.ProtoReflect.Descriptor instead.
func (*GetParticipatingStoresRequest) ProtoMessage ¶
func (*GetParticipatingStoresRequest) ProtoMessage()
func (*GetParticipatingStoresRequest) ProtoReflect ¶
func (x *GetParticipatingStoresRequest) ProtoReflect() protoreflect.Message
func (*GetParticipatingStoresRequest) Reset ¶
func (x *GetParticipatingStoresRequest) Reset()
func (*GetParticipatingStoresRequest) String ¶
func (x *GetParticipatingStoresRequest) String() string
type GetParticipatingStoresResponse ¶
type GetParticipatingStoresResponse struct { Stores []*Store `protobuf:"bytes,1,rep,name=stores,proto3" json:"stores,omitempty"` // contains filtered or unexported fields }
func (*GetParticipatingStoresResponse) Descriptor
deprecated
func (*GetParticipatingStoresResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetParticipatingStoresResponse.ProtoReflect.Descriptor instead.
func (*GetParticipatingStoresResponse) GetStores ¶
func (x *GetParticipatingStoresResponse) GetStores() []*Store
func (*GetParticipatingStoresResponse) ProtoMessage ¶
func (*GetParticipatingStoresResponse) ProtoMessage()
func (*GetParticipatingStoresResponse) ProtoReflect ¶
func (x *GetParticipatingStoresResponse) ProtoReflect() protoreflect.Message
func (*GetParticipatingStoresResponse) Reset ¶
func (x *GetParticipatingStoresResponse) Reset()
func (*GetParticipatingStoresResponse) String ¶
func (x *GetParticipatingStoresResponse) String() string
type GetProductRequest ¶
type GetProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetProductRequest) Descriptor
deprecated
func (*GetProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
func (*GetProductRequest) GetId ¶
func (x *GetProductRequest) GetId() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) ProtoReflect ¶
func (x *GetProductRequest) ProtoReflect() protoreflect.Message
func (*GetProductRequest) Reset ¶
func (x *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (x *GetProductRequest) String() string
type GetProductResponse ¶
type GetProductResponse struct { Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*GetProductResponse) Descriptor
deprecated
func (*GetProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.
func (*GetProductResponse) GetProduct ¶
func (x *GetProductResponse) GetProduct() *Product
func (*GetProductResponse) ProtoMessage ¶
func (*GetProductResponse) ProtoMessage()
func (*GetProductResponse) ProtoReflect ¶
func (x *GetProductResponse) ProtoReflect() protoreflect.Message
func (*GetProductResponse) Reset ¶
func (x *GetProductResponse) Reset()
func (*GetProductResponse) String ¶
func (x *GetProductResponse) String() string
type GetStoreRequest ¶
type GetStoreRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetStoreRequest) Descriptor
deprecated
func (*GetStoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStoreRequest.ProtoReflect.Descriptor instead.
func (*GetStoreRequest) GetId ¶
func (x *GetStoreRequest) GetId() string
func (*GetStoreRequest) ProtoMessage ¶
func (*GetStoreRequest) ProtoMessage()
func (*GetStoreRequest) ProtoReflect ¶
func (x *GetStoreRequest) ProtoReflect() protoreflect.Message
func (*GetStoreRequest) Reset ¶
func (x *GetStoreRequest) Reset()
func (*GetStoreRequest) String ¶
func (x *GetStoreRequest) String() string
type GetStoreResponse ¶
type GetStoreResponse struct { Store *Store `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"` // contains filtered or unexported fields }
func (*GetStoreResponse) Descriptor
deprecated
func (*GetStoreResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStoreResponse.ProtoReflect.Descriptor instead.
func (*GetStoreResponse) GetStore ¶
func (x *GetStoreResponse) GetStore() *Store
func (*GetStoreResponse) ProtoMessage ¶
func (*GetStoreResponse) ProtoMessage()
func (*GetStoreResponse) ProtoReflect ¶
func (x *GetStoreResponse) ProtoReflect() protoreflect.Message
func (*GetStoreResponse) Reset ¶
func (x *GetStoreResponse) Reset()
func (*GetStoreResponse) String ¶
func (x *GetStoreResponse) String() string
type GetStoresRequest ¶
type GetStoresRequest struct {
// contains filtered or unexported fields
}
func (*GetStoresRequest) Descriptor
deprecated
func (*GetStoresRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStoresRequest.ProtoReflect.Descriptor instead.
func (*GetStoresRequest) ProtoMessage ¶
func (*GetStoresRequest) ProtoMessage()
func (*GetStoresRequest) ProtoReflect ¶
func (x *GetStoresRequest) ProtoReflect() protoreflect.Message
func (*GetStoresRequest) Reset ¶
func (x *GetStoresRequest) Reset()
func (*GetStoresRequest) String ¶
func (x *GetStoresRequest) String() string
type GetStoresResponse ¶
type GetStoresResponse struct { Stores []*Store `protobuf:"bytes,1,rep,name=stores,proto3" json:"stores,omitempty"` // contains filtered or unexported fields }
func (*GetStoresResponse) Descriptor
deprecated
func (*GetStoresResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStoresResponse.ProtoReflect.Descriptor instead.
func (*GetStoresResponse) GetStores ¶
func (x *GetStoresResponse) GetStores() []*Store
func (*GetStoresResponse) ProtoMessage ¶
func (*GetStoresResponse) ProtoMessage()
func (*GetStoresResponse) ProtoReflect ¶
func (x *GetStoresResponse) ProtoReflect() protoreflect.Message
func (*GetStoresResponse) Reset ¶
func (x *GetStoresResponse) Reset()
func (*GetStoresResponse) String ¶
func (x *GetStoresResponse) String() string
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` StoreId string `protobuf:"bytes,2,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Sku string `protobuf:"bytes,5,opt,name=sku,proto3" json:"sku,omitempty"` Price float64 `protobuf:"fixed64,6,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetDescription ¶
func (*Product) GetStoreId ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type RemoveProductRequest ¶
type RemoveProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RemoveProductRequest) Descriptor
deprecated
func (*RemoveProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductRequest.ProtoReflect.Descriptor instead.
func (*RemoveProductRequest) GetId ¶
func (x *RemoveProductRequest) GetId() string
func (*RemoveProductRequest) ProtoMessage ¶
func (*RemoveProductRequest) ProtoMessage()
func (*RemoveProductRequest) ProtoReflect ¶
func (x *RemoveProductRequest) ProtoReflect() protoreflect.Message
func (*RemoveProductRequest) Reset ¶
func (x *RemoveProductRequest) Reset()
func (*RemoveProductRequest) String ¶
func (x *RemoveProductRequest) String() string
type RemoveProductResponse ¶
type RemoveProductResponse struct {
// contains filtered or unexported fields
}
func (*RemoveProductResponse) Descriptor
deprecated
func (*RemoveProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductResponse.ProtoReflect.Descriptor instead.
func (*RemoveProductResponse) ProtoMessage ¶
func (*RemoveProductResponse) ProtoMessage()
func (*RemoveProductResponse) ProtoReflect ¶
func (x *RemoveProductResponse) ProtoReflect() protoreflect.Message
func (*RemoveProductResponse) Reset ¶
func (x *RemoveProductResponse) Reset()
func (*RemoveProductResponse) String ¶
func (x *RemoveProductResponse) String() string
type Store ¶
type Store 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"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Participating bool `protobuf:"varint,4,opt,name=participating,proto3" json:"participating,omitempty"` // contains filtered or unexported fields }
func (*Store) Descriptor
deprecated
func (*Store) GetLocation ¶
func (*Store) GetParticipating ¶
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
func (*Store) ProtoReflect ¶
func (x *Store) ProtoReflect() protoreflect.Message
type StoresServiceClient ¶
type StoresServiceClient interface { CreateStore(ctx context.Context, in *CreateStoreRequest, opts ...grpc.CallOption) (*CreateStoreResponse, error) GetStore(ctx context.Context, in *GetStoreRequest, opts ...grpc.CallOption) (*GetStoreResponse, error) GetStores(ctx context.Context, in *GetStoresRequest, opts ...grpc.CallOption) (*GetStoresResponse, error) EnableParticipation(ctx context.Context, in *EnableParticipationRequest, opts ...grpc.CallOption) (*EnableParticipationResponse, error) DisableParticipation(ctx context.Context, in *DisableParticipationRequest, opts ...grpc.CallOption) (*DisableParticipationResponse, error) GetParticipatingStores(ctx context.Context, in *GetParticipatingStoresRequest, opts ...grpc.CallOption) (*GetParticipatingStoresResponse, error) AddProduct(ctx context.Context, in *AddProductRequest, opts ...grpc.CallOption) (*AddProductResponse, error) RemoveProduct(ctx context.Context, in *RemoveProductRequest, opts ...grpc.CallOption) (*RemoveProductResponse, error) GetCatalog(ctx context.Context, in *GetCatalogRequest, opts ...grpc.CallOption) (*GetCatalogResponse, error) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error) }
StoresServiceClient is the client API for StoresService 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 NewStoresServiceClient ¶
func NewStoresServiceClient(cc grpc.ClientConnInterface) StoresServiceClient
type StoresServiceServer ¶
type StoresServiceServer interface { CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error) GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error) GetStores(context.Context, *GetStoresRequest) (*GetStoresResponse, error) EnableParticipation(context.Context, *EnableParticipationRequest) (*EnableParticipationResponse, error) DisableParticipation(context.Context, *DisableParticipationRequest) (*DisableParticipationResponse, error) GetParticipatingStores(context.Context, *GetParticipatingStoresRequest) (*GetParticipatingStoresResponse, error) AddProduct(context.Context, *AddProductRequest) (*AddProductResponse, error) RemoveProduct(context.Context, *RemoveProductRequest) (*RemoveProductResponse, error) GetCatalog(context.Context, *GetCatalogRequest) (*GetCatalogResponse, error) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error) // contains filtered or unexported methods }
StoresServiceServer is the server API for StoresService service. All implementations must embed UnimplementedStoresServiceServer for forward compatibility
type UnimplementedStoresServiceServer ¶
type UnimplementedStoresServiceServer struct { }
UnimplementedStoresServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStoresServiceServer) AddProduct ¶
func (UnimplementedStoresServiceServer) AddProduct(context.Context, *AddProductRequest) (*AddProductResponse, error)
func (UnimplementedStoresServiceServer) CreateStore ¶
func (UnimplementedStoresServiceServer) CreateStore(context.Context, *CreateStoreRequest) (*CreateStoreResponse, error)
func (UnimplementedStoresServiceServer) DisableParticipation ¶
func (UnimplementedStoresServiceServer) DisableParticipation(context.Context, *DisableParticipationRequest) (*DisableParticipationResponse, error)
func (UnimplementedStoresServiceServer) EnableParticipation ¶
func (UnimplementedStoresServiceServer) EnableParticipation(context.Context, *EnableParticipationRequest) (*EnableParticipationResponse, error)
func (UnimplementedStoresServiceServer) GetCatalog ¶
func (UnimplementedStoresServiceServer) GetCatalog(context.Context, *GetCatalogRequest) (*GetCatalogResponse, error)
func (UnimplementedStoresServiceServer) GetParticipatingStores ¶
func (UnimplementedStoresServiceServer) GetParticipatingStores(context.Context, *GetParticipatingStoresRequest) (*GetParticipatingStoresResponse, error)
func (UnimplementedStoresServiceServer) GetProduct ¶
func (UnimplementedStoresServiceServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
func (UnimplementedStoresServiceServer) GetStore ¶
func (UnimplementedStoresServiceServer) GetStore(context.Context, *GetStoreRequest) (*GetStoreResponse, error)
func (UnimplementedStoresServiceServer) GetStores ¶
func (UnimplementedStoresServiceServer) GetStores(context.Context, *GetStoresRequest) (*GetStoresResponse, error)
func (UnimplementedStoresServiceServer) RemoveProduct ¶
func (UnimplementedStoresServiceServer) RemoveProduct(context.Context, *RemoveProductRequest) (*RemoveProductResponse, error)
type UnsafeStoresServiceServer ¶
type UnsafeStoresServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStoresServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StoresServiceServer will result in compilation errors.