Documentation ¶
Overview ¶
Package _go is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StoreServiceClient) error
- func RegisterStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StoreServiceServer) error
- func RegisterStoreServiceServer(s grpc.ServiceRegistrar, srv StoreServiceServer)
- type AddMemberRequest
- func (*AddMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddMemberRequest) GetAppId() string
- func (x *AddMemberRequest) GetRecipient() string
- func (x *AddMemberRequest) GetUserId() string
- func (*AddMemberRequest) ProtoMessage()
- func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
- func (x *AddMemberRequest) Reset()
- func (x *AddMemberRequest) String() string
- type AddMemberResponse
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetAppId() string
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetImage() string
- func (x *CreateUserRequest) GetName() string
- func (x *CreateUserRequest) GetProvider() UserProvider
- func (x *CreateUserRequest) GetUserId() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetSuccess() bool
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetAppId() string
- func (x *DeleteUserRequest) GetUserId() string
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserResponse) GetSuccess() bool
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- type PrivacyPolicy
- func (*PrivacyPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *PrivacyPolicy) GetAcceptedDate() *timestamppb.Timestamp
- func (x *PrivacyPolicy) GetBusinessCommunications() bool
- func (x *PrivacyPolicy) GetDataTransfer() bool
- func (x *PrivacyPolicy) GetMarketingSegmentation() bool
- func (x *PrivacyPolicy) GetPolicyDate() *timestamppb.Timestamp
- func (x *PrivacyPolicy) GetVersion() string
- func (*PrivacyPolicy) ProtoMessage()
- func (x *PrivacyPolicy) ProtoReflect() protoreflect.Message
- func (x *PrivacyPolicy) Reset()
- func (x *PrivacyPolicy) String() string
- type ProductPayload
- func (*ProductPayload) Descriptor() ([]byte, []int)deprecated
- func (x *ProductPayload) GetGiftedId() string
- func (x *ProductPayload) GetMemberEmails() []string
- func (x *ProductPayload) GetMembers() int32
- func (x *ProductPayload) GetOwnerId() string
- func (*ProductPayload) ProtoMessage()
- func (x *ProductPayload) ProtoReflect() protoreflect.Message
- func (x *ProductPayload) Reset()
- func (x *ProductPayload) String() string
- type ReadSubscriptionRequest
- func (*ReadSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadSubscriptionRequest) GetAppId() string
- func (x *ReadSubscriptionRequest) GetUserId() string
- func (*ReadSubscriptionRequest) ProtoMessage()
- func (x *ReadSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *ReadSubscriptionRequest) Reset()
- func (x *ReadSubscriptionRequest) String() string
- type ReadSubscriptionResponse
- func (*ReadSubscriptionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadSubscriptionResponse) GetSubscription() *Subscription
- func (*ReadSubscriptionResponse) ProtoMessage()
- func (x *ReadSubscriptionResponse) ProtoReflect() protoreflect.Message
- func (x *ReadSubscriptionResponse) Reset()
- func (x *ReadSubscriptionResponse) String() string
- type ReadUserByEmailRequest
- func (*ReadUserByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadUserByEmailRequest) GetAppId() string
- func (x *ReadUserByEmailRequest) GetEmail() string
- func (*ReadUserByEmailRequest) ProtoMessage()
- func (x *ReadUserByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *ReadUserByEmailRequest) Reset()
- func (x *ReadUserByEmailRequest) String() string
- type ReadUserByEmailResponse
- func (*ReadUserByEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadUserByEmailResponse) GetUser() *User
- func (*ReadUserByEmailResponse) ProtoMessage()
- func (x *ReadUserByEmailResponse) ProtoReflect() protoreflect.Message
- func (x *ReadUserByEmailResponse) Reset()
- func (x *ReadUserByEmailResponse) String() string
- type ReadUserRequest
- func (*ReadUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadUserRequest) GetAppId() string
- func (x *ReadUserRequest) GetUserId() string
- func (*ReadUserRequest) ProtoMessage()
- func (x *ReadUserRequest) ProtoReflect() protoreflect.Message
- func (x *ReadUserRequest) Reset()
- func (x *ReadUserRequest) String() string
- type ReadUserResponse
- type RemoveMemberRequest
- func (*RemoveMemberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveMemberRequest) GetAppId() string
- func (x *RemoveMemberRequest) GetRecipient() string
- func (x *RemoveMemberRequest) GetUserId() string
- func (*RemoveMemberRequest) ProtoMessage()
- func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveMemberRequest) Reset()
- func (x *RemoveMemberRequest) String() string
- type RemoveMemberResponse
- func (*RemoveMemberResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveMemberResponse) GetSuccess() bool
- func (*RemoveMemberResponse) ProtoMessage()
- func (x *RemoveMemberResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveMemberResponse) Reset()
- func (x *RemoveMemberResponse) String() string
- type StoreServiceClient
- type StoreServiceServer
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetAppId() string
- func (x *Subscription) GetCategory() SubscriptionCategory
- func (x *Subscription) GetCode() SubscriptionCode
- func (x *Subscription) GetProductPayload() *ProductPayload
- func (x *Subscription) GetSubscriptionPayload() *SubscriptionPayload
- func (x *Subscription) GetType() SubscriptionType
- func (x *Subscription) GetUserId() string
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type SubscriptionCategory
- func (SubscriptionCategory) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionCategory) Enum() *SubscriptionCategory
- func (SubscriptionCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionCategory) Number() protoreflect.EnumNumber
- func (x SubscriptionCategory) String() string
- func (SubscriptionCategory) Type() protoreflect.EnumType
- type SubscriptionCode
- func (SubscriptionCode) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionCode) Enum() *SubscriptionCode
- func (SubscriptionCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionCode) Number() protoreflect.EnumNumber
- func (x SubscriptionCode) String() string
- func (SubscriptionCode) Type() protoreflect.EnumType
- type SubscriptionPayload
- func (*SubscriptionPayload) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionPayload) GetExpiresAt() *timestamppb.Timestamp
- func (x *SubscriptionPayload) GetProductId() string
- func (x *SubscriptionPayload) GetProvider() SubscriptionProvider
- func (x *SubscriptionPayload) GetPurchaseToken() string
- func (x *SubscriptionPayload) GetPurchasedAt() *timestamppb.Timestamp
- func (*SubscriptionPayload) ProtoMessage()
- func (x *SubscriptionPayload) ProtoReflect() protoreflect.Message
- func (x *SubscriptionPayload) Reset()
- func (x *SubscriptionPayload) String() string
- type SubscriptionProvider
- func (SubscriptionProvider) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionProvider) Enum() *SubscriptionProvider
- func (SubscriptionProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionProvider) Number() protoreflect.EnumNumber
- func (x SubscriptionProvider) String() string
- func (SubscriptionProvider) Type() protoreflect.EnumType
- type SubscriptionType
- func (SubscriptionType) Descriptor() protoreflect.EnumDescriptor
- func (x SubscriptionType) Enum() *SubscriptionType
- func (SubscriptionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscriptionType) Number() protoreflect.EnumNumber
- func (x SubscriptionType) String() string
- func (SubscriptionType) Type() protoreflect.EnumType
- type UnimplementedStoreServiceServer
- func (UnimplementedStoreServiceServer) AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error)
- func (UnimplementedStoreServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedStoreServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedStoreServiceServer) ReadSubscription(context.Context, *ReadSubscriptionRequest) (*ReadSubscriptionResponse, error)
- func (UnimplementedStoreServiceServer) ReadUser(context.Context, *ReadUserRequest) (*ReadUserResponse, error)
- func (UnimplementedStoreServiceServer) ReadUserByEmail(context.Context, *ReadUserByEmailRequest) (*ReadUserByEmailResponse, error)
- func (UnimplementedStoreServiceServer) RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error)
- func (UnimplementedStoreServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- func (UnimplementedStoreServiceServer) UpsertPrivacyPolicy(context.Context, *UpsertPrivacyPolicyRequest) (*UpsertPrivacyPolicyResponse, error)
- type UnsafeStoreServiceServer
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetAppId() string
- func (x *UpdateUserRequest) GetImage() string
- func (x *UpdateUserRequest) GetName() string
- func (x *UpdateUserRequest) GetProvider() UserProvider
- func (x *UpdateUserRequest) GetUserId() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type UpdateUserResponse
- func (*UpdateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserResponse) GetSuccess() bool
- func (*UpdateUserResponse) ProtoMessage()
- func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserResponse) Reset()
- func (x *UpdateUserResponse) String() string
- type UpsertPrivacyPolicyRequest
- func (*UpsertPrivacyPolicyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertPrivacyPolicyRequest) GetAppId() string
- func (x *UpsertPrivacyPolicyRequest) GetBusinessCommunications() bool
- func (x *UpsertPrivacyPolicyRequest) GetDataTransfer() bool
- func (x *UpsertPrivacyPolicyRequest) GetMarketingSegmentation() bool
- func (x *UpsertPrivacyPolicyRequest) GetUserId() string
- func (*UpsertPrivacyPolicyRequest) ProtoMessage()
- func (x *UpsertPrivacyPolicyRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertPrivacyPolicyRequest) Reset()
- func (x *UpsertPrivacyPolicyRequest) String() string
- type UpsertPrivacyPolicyResponse
- func (*UpsertPrivacyPolicyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertPrivacyPolicyResponse) GetSuccess() bool
- func (*UpsertPrivacyPolicyResponse) ProtoMessage()
- func (x *UpsertPrivacyPolicyResponse) ProtoReflect() protoreflect.Message
- func (x *UpsertPrivacyPolicyResponse) Reset()
- func (x *UpsertPrivacyPolicyResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetImage() string
- func (x *User) GetName() string
- func (x *User) GetPrivacyPolicies() []*PrivacyPolicy
- func (x *User) GetProvider() UserProvider
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserProvider
- func (UserProvider) Descriptor() protoreflect.EnumDescriptor
- func (x UserProvider) Enum() *UserProvider
- func (UserProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserProvider) Number() protoreflect.EnumNumber
- func (x UserProvider) String() string
- func (UserProvider) Type() protoreflect.EnumType
Constants ¶
const ( StoreService_CreateUser_FullMethodName = "/store_manager.v1.StoreService/CreateUser" StoreService_ReadUser_FullMethodName = "/store_manager.v1.StoreService/ReadUser" StoreService_ReadUserByEmail_FullMethodName = "/store_manager.v1.StoreService/ReadUserByEmail" StoreService_UpdateUser_FullMethodName = "/store_manager.v1.StoreService/UpdateUser" StoreService_DeleteUser_FullMethodName = "/store_manager.v1.StoreService/DeleteUser" StoreService_UpsertPrivacyPolicy_FullMethodName = "/store_manager.v1.StoreService/UpsertPrivacyPolicy" StoreService_ReadSubscription_FullMethodName = "/store_manager.v1.StoreService/ReadSubscription" StoreService_AddMember_FullMethodName = "/store_manager.v1.StoreService/AddMember" StoreService_RemoveMember_FullMethodName = "/store_manager.v1.StoreService/RemoveMember" )
Variables ¶
var ( UserProvider_name = map[int32]string{ 0: "USER_PROVIDER_UNSPECIFIED", 1: "USER_PROVIDER_APPLE", 2: "USER_PROVIDER_GOOGLE", 3: "USER_PROVIDER_CUSTOM", } UserProvider_value = map[string]int32{ "USER_PROVIDER_UNSPECIFIED": 0, "USER_PROVIDER_APPLE": 1, "USER_PROVIDER_GOOGLE": 2, "USER_PROVIDER_CUSTOM": 3, } )
Enum value maps for UserProvider.
var ( SubscriptionType_name = map[int32]string{ 0: "SUBSCRIPTION_TYPE_UNSPECIFIED", 1: "SUBSCRIPTION_TYPE_TRIAL", 2: "SUBSCRIPTION_TYPE_PREMIUM", 3: "SUBSCRIPTION_TYPE_MANUAL_PREMIUM", 4: "SUBSCRIPTION_TYPE_FREE", } SubscriptionType_value = map[string]int32{ "SUBSCRIPTION_TYPE_UNSPECIFIED": 0, "SUBSCRIPTION_TYPE_TRIAL": 1, "SUBSCRIPTION_TYPE_PREMIUM": 2, "SUBSCRIPTION_TYPE_MANUAL_PREMIUM": 3, "SUBSCRIPTION_TYPE_FREE": 4, } )
Enum value maps for SubscriptionType.
var ( SubscriptionCode_name = map[int32]string{ 0: "SUBSCRIPTION_CODE_UNSPECIFIED", 1: "SUBSCRIPTION_CODE_STARTED", 2: "SUBSCRIPTION_CODE_RENEWED", 3: "SUBSCRIPTION_CODE_CANCELLED", 4: "SUBSCRIPTION_CODE_EXPIRED", } SubscriptionCode_value = map[string]int32{ "SUBSCRIPTION_CODE_UNSPECIFIED": 0, "SUBSCRIPTION_CODE_STARTED": 1, "SUBSCRIPTION_CODE_RENEWED": 2, "SUBSCRIPTION_CODE_CANCELLED": 3, "SUBSCRIPTION_CODE_EXPIRED": 4, } )
Enum value maps for SubscriptionCode.
var ( SubscriptionProvider_name = map[int32]string{ 0: "SUBSCRIPTION_PROVIDER_UNSPECIFIED", 1: "SUBSCRIPTION_PROVIDER_APPLE", 2: "SUBSCRIPTION_PROVIDER_GOOGLE", 3: "SUBSCRIPTION_PROVIDER_STRIPE", 4: "SUBSCRIPTION_PROVIDER_PAYCOMET", } SubscriptionProvider_value = map[string]int32{ "SUBSCRIPTION_PROVIDER_UNSPECIFIED": 0, "SUBSCRIPTION_PROVIDER_APPLE": 1, "SUBSCRIPTION_PROVIDER_GOOGLE": 2, "SUBSCRIPTION_PROVIDER_STRIPE": 3, "SUBSCRIPTION_PROVIDER_PAYCOMET": 4, } )
Enum value maps for SubscriptionProvider.
var ( SubscriptionCategory_name = map[int32]string{ 0: "SUBSCRIPTION_CATEGORY_UNSPECIFIED", 1: "SUBSCRIPTION_CATEGORY_GIFT", 2: "SUBSCRIPTION_CATEGORY_GROUP", } SubscriptionCategory_value = map[string]int32{ "SUBSCRIPTION_CATEGORY_UNSPECIFIED": 0, "SUBSCRIPTION_CATEGORY_GIFT": 1, "SUBSCRIPTION_CATEGORY_GROUP": 2, } )
Enum value maps for SubscriptionCategory.
var File_api_proto_v1_store_manager_proto protoreflect.FileDescriptor
var StoreService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "store_manager.v1.StoreService", HandlerType: (*StoreServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _StoreService_CreateUser_Handler, }, { MethodName: "ReadUser", Handler: _StoreService_ReadUser_Handler, }, { MethodName: "ReadUserByEmail", Handler: _StoreService_ReadUserByEmail_Handler, }, { MethodName: "UpdateUser", Handler: _StoreService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _StoreService_DeleteUser_Handler, }, { MethodName: "UpsertPrivacyPolicy", Handler: _StoreService_UpsertPrivacyPolicy_Handler, }, { MethodName: "ReadSubscription", Handler: _StoreService_ReadSubscription_Handler, }, { MethodName: "AddMember", Handler: _StoreService_AddMember_Handler, }, { MethodName: "RemoveMember", Handler: _StoreService_RemoveMember_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/v1/store_manager.proto", }
StoreService_ServiceDesc is the grpc.ServiceDesc for StoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStoreServiceHandler ¶
func RegisterStoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterStoreServiceHandler registers the http handlers for service StoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterStoreServiceHandlerClient ¶
func RegisterStoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StoreServiceClient) error
RegisterStoreServiceHandlerClient registers the http handlers for service StoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StoreServiceClient" to call the correct interceptors.
func RegisterStoreServiceHandlerFromEndpoint ¶
func RegisterStoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterStoreServiceHandlerFromEndpoint is same as RegisterStoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterStoreServiceHandlerServer ¶
func RegisterStoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server StoreServiceServer) error
RegisterStoreServiceHandlerServer registers the http handlers for service StoreService to "mux". UnaryRPC :call StoreServiceServer 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 RegisterStoreServiceHandlerFromEndpoint instead.
func RegisterStoreServiceServer ¶
func RegisterStoreServiceServer(s grpc.ServiceRegistrar, srv StoreServiceServer)
Types ¶
type AddMemberRequest ¶
type AddMemberRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // recipient is the email of the member to add to the subscription. Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` // contains filtered or unexported fields }
AddMemberRequest
AddMemberRequest represents a request to add a member to a subscription.
func (*AddMemberRequest) Descriptor
deprecated
func (*AddMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.
func (*AddMemberRequest) GetAppId ¶
func (x *AddMemberRequest) GetAppId() string
func (*AddMemberRequest) GetRecipient ¶
func (x *AddMemberRequest) GetRecipient() string
func (*AddMemberRequest) GetUserId ¶
func (x *AddMemberRequest) GetUserId() string
func (*AddMemberRequest) ProtoMessage ¶
func (*AddMemberRequest) ProtoMessage()
func (*AddMemberRequest) ProtoReflect ¶
func (x *AddMemberRequest) ProtoReflect() protoreflect.Message
func (*AddMemberRequest) Reset ¶
func (x *AddMemberRequest) Reset()
func (*AddMemberRequest) String ¶
func (x *AddMemberRequest) String() string
type AddMemberResponse ¶
type AddMemberResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
AddMemberResponse
AddMemberResponse represents a response to add a member to a subscription.
func (*AddMemberResponse) Descriptor
deprecated
func (*AddMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddMemberResponse.ProtoReflect.Descriptor instead.
func (*AddMemberResponse) GetSuccess ¶
func (x *AddMemberResponse) GetSuccess() bool
func (*AddMemberResponse) ProtoMessage ¶
func (*AddMemberResponse) ProtoMessage()
func (*AddMemberResponse) ProtoReflect ¶
func (x *AddMemberResponse) ProtoReflect() protoreflect.Message
func (*AddMemberResponse) Reset ¶
func (x *AddMemberResponse) Reset()
func (*AddMemberResponse) String ¶
func (x *AddMemberResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // email is the email of the user. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // name is the name of the user. Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` // image is the image URL of the user. Image *string `protobuf:"bytes,5,opt,name=image,proto3,oneof" json:"image,omitempty"` // provider is the provider of the user. Provider UserProvider `protobuf:"varint,6,opt,name=provider,proto3,enum=store_manager.v1.UserProvider" json:"provider,omitempty"` // contains filtered or unexported fields }
CreateUserRequest
CreateUserRequest represents a request to create a user.
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetAppId ¶
func (x *CreateUserRequest) GetAppId() string
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetImage ¶
func (x *CreateUserRequest) GetImage() string
func (*CreateUserRequest) GetName ¶
func (x *CreateUserRequest) GetName() string
func (*CreateUserRequest) GetProvider ¶
func (x *CreateUserRequest) GetProvider() UserProvider
func (*CreateUserRequest) GetUserId ¶
func (x *CreateUserRequest) GetUserId() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
CreateUserResponse
CreateUserResponse represents a response to create a user.
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetSuccess ¶
func (x *CreateUserResponse) GetSuccess() bool
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // contains filtered or unexported fields }
DeleteUserRequest
DeleteUserRequest represents a request to delete a user.
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetAppId ¶
func (x *DeleteUserRequest) GetAppId() string
func (*DeleteUserRequest) GetUserId ¶
func (x *DeleteUserRequest) GetUserId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
DeleteUserResponse
DeleteUserResponse represents a response to update a user.
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) GetSuccess ¶
func (x *DeleteUserResponse) GetSuccess() bool
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type PrivacyPolicy ¶
type PrivacyPolicy struct { // version is the version of the privacy policy. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // policy_date is the date when the privacy policy was created. PolicyDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=policy_date,json=policyDate,proto3" json:"policy_date,omitempty"` // accepted_date is the date when the privacy policy was accepted. AcceptedDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=accepted_date,json=acceptedDate,proto3" json:"accepted_date,omitempty"` // business_communications is the acceptance of business communications. BusinessCommunications bool `` /* 128-byte string literal not displayed */ // marketing_segmentation is the acceptance of marketing segmentation. MarketingSegmentation bool `protobuf:"varint,5,opt,name=marketing_segmentation,json=marketingSegmentation,proto3" json:"marketing_segmentation,omitempty"` // data_transfer is the acceptance of data transfer. DataTransfer bool `protobuf:"varint,6,opt,name=data_transfer,json=dataTransfer,proto3" json:"data_transfer,omitempty"` // contains filtered or unexported fields }
PrivacyPolicy
PrivacyPolicy represents a privacy policy accepted by the user.
func (*PrivacyPolicy) Descriptor
deprecated
func (*PrivacyPolicy) Descriptor() ([]byte, []int)
Deprecated: Use PrivacyPolicy.ProtoReflect.Descriptor instead.
func (*PrivacyPolicy) GetAcceptedDate ¶
func (x *PrivacyPolicy) GetAcceptedDate() *timestamppb.Timestamp
func (*PrivacyPolicy) GetBusinessCommunications ¶
func (x *PrivacyPolicy) GetBusinessCommunications() bool
func (*PrivacyPolicy) GetDataTransfer ¶
func (x *PrivacyPolicy) GetDataTransfer() bool
func (*PrivacyPolicy) GetMarketingSegmentation ¶
func (x *PrivacyPolicy) GetMarketingSegmentation() bool
func (*PrivacyPolicy) GetPolicyDate ¶
func (x *PrivacyPolicy) GetPolicyDate() *timestamppb.Timestamp
func (*PrivacyPolicy) GetVersion ¶
func (x *PrivacyPolicy) GetVersion() string
func (*PrivacyPolicy) ProtoMessage ¶
func (*PrivacyPolicy) ProtoMessage()
func (*PrivacyPolicy) ProtoReflect ¶
func (x *PrivacyPolicy) ProtoReflect() protoreflect.Message
func (*PrivacyPolicy) Reset ¶
func (x *PrivacyPolicy) Reset()
func (*PrivacyPolicy) String ¶
func (x *PrivacyPolicy) String() string
type ProductPayload ¶
type ProductPayload struct { // members is the number of members that the subscription has. Members *int32 `protobuf:"varint,1,opt,name=members,proto3,oneof" json:"members,omitempty"` // member_emails is the list of emails of the members of the subscription. MemberEmails []string `protobuf:"bytes,2,rep,name=member_emails,json=memberEmails,proto3" json:"member_emails,omitempty"` // owner_id is the unique identifier of the owner of the subscription. OwnerId *string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // gifted_id is the unique identifier of the user who gifted the subscription. GiftedId *string `protobuf:"bytes,4,opt,name=gifted_id,json=giftedId,proto3,oneof" json:"gifted_id,omitempty"` // contains filtered or unexported fields }
ProductPayload
ProductPayload represents the payload of a product.
func (*ProductPayload) Descriptor
deprecated
func (*ProductPayload) Descriptor() ([]byte, []int)
Deprecated: Use ProductPayload.ProtoReflect.Descriptor instead.
func (*ProductPayload) GetGiftedId ¶
func (x *ProductPayload) GetGiftedId() string
func (*ProductPayload) GetMemberEmails ¶
func (x *ProductPayload) GetMemberEmails() []string
func (*ProductPayload) GetMembers ¶
func (x *ProductPayload) GetMembers() int32
func (*ProductPayload) GetOwnerId ¶
func (x *ProductPayload) GetOwnerId() string
func (*ProductPayload) ProtoMessage ¶
func (*ProductPayload) ProtoMessage()
func (*ProductPayload) ProtoReflect ¶
func (x *ProductPayload) ProtoReflect() protoreflect.Message
func (*ProductPayload) Reset ¶
func (x *ProductPayload) Reset()
func (*ProductPayload) String ¶
func (x *ProductPayload) String() string
type ReadSubscriptionRequest ¶
type ReadSubscriptionRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // contains filtered or unexported fields }
ReadSubscriptionRequest
ReadSubscriptionRequest represents a request to get a subscription.
func (*ReadSubscriptionRequest) Descriptor
deprecated
func (*ReadSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*ReadSubscriptionRequest) GetAppId ¶
func (x *ReadSubscriptionRequest) GetAppId() string
func (*ReadSubscriptionRequest) GetUserId ¶
func (x *ReadSubscriptionRequest) GetUserId() string
func (*ReadSubscriptionRequest) ProtoMessage ¶
func (*ReadSubscriptionRequest) ProtoMessage()
func (*ReadSubscriptionRequest) ProtoReflect ¶
func (x *ReadSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*ReadSubscriptionRequest) Reset ¶
func (x *ReadSubscriptionRequest) Reset()
func (*ReadSubscriptionRequest) String ¶
func (x *ReadSubscriptionRequest) String() string
type ReadSubscriptionResponse ¶
type ReadSubscriptionResponse struct { // subscription is the subscription. Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"` // contains filtered or unexported fields }
ReadSubscriptionResponse
ReadSubscriptionResponse represents a response to get a subscription.
func (*ReadSubscriptionResponse) Descriptor
deprecated
func (*ReadSubscriptionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadSubscriptionResponse.ProtoReflect.Descriptor instead.
func (*ReadSubscriptionResponse) GetSubscription ¶
func (x *ReadSubscriptionResponse) GetSubscription() *Subscription
func (*ReadSubscriptionResponse) ProtoMessage ¶
func (*ReadSubscriptionResponse) ProtoMessage()
func (*ReadSubscriptionResponse) ProtoReflect ¶
func (x *ReadSubscriptionResponse) ProtoReflect() protoreflect.Message
func (*ReadSubscriptionResponse) Reset ¶
func (x *ReadSubscriptionResponse) Reset()
func (*ReadSubscriptionResponse) String ¶
func (x *ReadSubscriptionResponse) String() string
type ReadUserByEmailRequest ¶
type ReadUserByEmailRequest struct { // email is the email of the user. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // contains filtered or unexported fields }
ReadUserByEmailRequest
ReadUserByEmailRequest represents a request to get a user by email.
func (*ReadUserByEmailRequest) Descriptor
deprecated
func (*ReadUserByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadUserByEmailRequest.ProtoReflect.Descriptor instead.
func (*ReadUserByEmailRequest) GetAppId ¶
func (x *ReadUserByEmailRequest) GetAppId() string
func (*ReadUserByEmailRequest) GetEmail ¶
func (x *ReadUserByEmailRequest) GetEmail() string
func (*ReadUserByEmailRequest) ProtoMessage ¶
func (*ReadUserByEmailRequest) ProtoMessage()
func (*ReadUserByEmailRequest) ProtoReflect ¶
func (x *ReadUserByEmailRequest) ProtoReflect() protoreflect.Message
func (*ReadUserByEmailRequest) Reset ¶
func (x *ReadUserByEmailRequest) Reset()
func (*ReadUserByEmailRequest) String ¶
func (x *ReadUserByEmailRequest) String() string
type ReadUserByEmailResponse ¶
type ReadUserByEmailResponse struct { // user is the user. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
ReadUserByEmailResponse
ReadUserByEmailResponse represents a response to get a user by email.
func (*ReadUserByEmailResponse) Descriptor
deprecated
func (*ReadUserByEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadUserByEmailResponse.ProtoReflect.Descriptor instead.
func (*ReadUserByEmailResponse) GetUser ¶
func (x *ReadUserByEmailResponse) GetUser() *User
func (*ReadUserByEmailResponse) ProtoMessage ¶
func (*ReadUserByEmailResponse) ProtoMessage()
func (*ReadUserByEmailResponse) ProtoReflect ¶
func (x *ReadUserByEmailResponse) ProtoReflect() protoreflect.Message
func (*ReadUserByEmailResponse) Reset ¶
func (x *ReadUserByEmailResponse) Reset()
func (*ReadUserByEmailResponse) String ¶
func (x *ReadUserByEmailResponse) String() string
type ReadUserRequest ¶
type ReadUserRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // contains filtered or unexported fields }
ReadUserRequest
ReadUserRequest represents a request to get a user.
func (*ReadUserRequest) Descriptor
deprecated
func (*ReadUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadUserRequest.ProtoReflect.Descriptor instead.
func (*ReadUserRequest) GetAppId ¶
func (x *ReadUserRequest) GetAppId() string
func (*ReadUserRequest) GetUserId ¶
func (x *ReadUserRequest) GetUserId() string
func (*ReadUserRequest) ProtoMessage ¶
func (*ReadUserRequest) ProtoMessage()
func (*ReadUserRequest) ProtoReflect ¶
func (x *ReadUserRequest) ProtoReflect() protoreflect.Message
func (*ReadUserRequest) Reset ¶
func (x *ReadUserRequest) Reset()
func (*ReadUserRequest) String ¶
func (x *ReadUserRequest) String() string
type ReadUserResponse ¶
type ReadUserResponse struct { // user is the user. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
ReadUserResponse
ReadUserResponse represents a response to get a user.
func (*ReadUserResponse) Descriptor
deprecated
func (*ReadUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadUserResponse.ProtoReflect.Descriptor instead.
func (*ReadUserResponse) GetUser ¶
func (x *ReadUserResponse) GetUser() *User
func (*ReadUserResponse) ProtoMessage ¶
func (*ReadUserResponse) ProtoMessage()
func (*ReadUserResponse) ProtoReflect ¶
func (x *ReadUserResponse) ProtoReflect() protoreflect.Message
func (*ReadUserResponse) Reset ¶
func (x *ReadUserResponse) Reset()
func (*ReadUserResponse) String ¶
func (x *ReadUserResponse) String() string
type RemoveMemberRequest ¶
type RemoveMemberRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // recipient is the email of the member to remove from the subscription. Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"` // contains filtered or unexported fields }
RemoveMemberRequest
RemoveMemberRequest represents a request to remove a member from a subscription.
func (*RemoveMemberRequest) Descriptor
deprecated
func (*RemoveMemberRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMemberRequest.ProtoReflect.Descriptor instead.
func (*RemoveMemberRequest) GetAppId ¶
func (x *RemoveMemberRequest) GetAppId() string
func (*RemoveMemberRequest) GetRecipient ¶
func (x *RemoveMemberRequest) GetRecipient() string
func (*RemoveMemberRequest) GetUserId ¶
func (x *RemoveMemberRequest) GetUserId() string
func (*RemoveMemberRequest) ProtoMessage ¶
func (*RemoveMemberRequest) ProtoMessage()
func (*RemoveMemberRequest) ProtoReflect ¶
func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message
func (*RemoveMemberRequest) Reset ¶
func (x *RemoveMemberRequest) Reset()
func (*RemoveMemberRequest) String ¶
func (x *RemoveMemberRequest) String() string
type RemoveMemberResponse ¶
type RemoveMemberResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
RemoveMemberResponse
RemoveMemberResponse represents a response to remove a member from a subscription.
func (*RemoveMemberResponse) Descriptor
deprecated
func (*RemoveMemberResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveMemberResponse.ProtoReflect.Descriptor instead.
func (*RemoveMemberResponse) GetSuccess ¶
func (x *RemoveMemberResponse) GetSuccess() bool
func (*RemoveMemberResponse) ProtoMessage ¶
func (*RemoveMemberResponse) ProtoMessage()
func (*RemoveMemberResponse) ProtoReflect ¶
func (x *RemoveMemberResponse) ProtoReflect() protoreflect.Message
func (*RemoveMemberResponse) Reset ¶
func (x *RemoveMemberResponse) Reset()
func (*RemoveMemberResponse) String ¶
func (x *RemoveMemberResponse) String() string
type StoreServiceClient ¶
type StoreServiceClient interface { // CreateUser // // CreateUser creates a new user. CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) // ReadUser // // ReadUser returns the user with the given id. ReadUser(ctx context.Context, in *ReadUserRequest, opts ...grpc.CallOption) (*ReadUserResponse, error) // ReadUserByEmail // // ReadUserByEmail returns the user with the given email. ReadUserByEmail(ctx context.Context, in *ReadUserByEmailRequest, opts ...grpc.CallOption) (*ReadUserByEmailResponse, error) // UpdateUser // // UpdateUser updates a user. UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) // DeleteUser // // DeleteUser deletes a user. DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) // UpsertPrivacyPolicy // // UpsertPrivacyPolicy creates or updates the privacy policy of a user. UpsertPrivacyPolicy(ctx context.Context, in *UpsertPrivacyPolicyRequest, opts ...grpc.CallOption) (*UpsertPrivacyPolicyResponse, error) // ReadSubscription // // ReadSubscription returns the subscription with the given id. ReadSubscription(ctx context.Context, in *ReadSubscriptionRequest, opts ...grpc.CallOption) (*ReadSubscriptionResponse, error) // AddMember // // AddMember adds a member to a subscription. AddMember(ctx context.Context, in *AddMemberRequest, opts ...grpc.CallOption) (*AddMemberResponse, error) // RemoveMember // // RemoveMember removes a member from a subscription. RemoveMember(ctx context.Context, in *RemoveMemberRequest, opts ...grpc.CallOption) (*RemoveMemberResponse, error) }
StoreServiceClient is the client API for StoreService 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.
StoreService ¶
StoreService represents the service to manage the store.
func NewStoreServiceClient ¶
func NewStoreServiceClient(cc grpc.ClientConnInterface) StoreServiceClient
type StoreServiceServer ¶
type StoreServiceServer interface { // CreateUser // // CreateUser creates a new user. CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // ReadUser // // ReadUser returns the user with the given id. ReadUser(context.Context, *ReadUserRequest) (*ReadUserResponse, error) // ReadUserByEmail // // ReadUserByEmail returns the user with the given email. ReadUserByEmail(context.Context, *ReadUserByEmailRequest) (*ReadUserByEmailResponse, error) // UpdateUser // // UpdateUser updates a user. UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) // DeleteUser // // DeleteUser deletes a user. DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) // UpsertPrivacyPolicy // // UpsertPrivacyPolicy creates or updates the privacy policy of a user. UpsertPrivacyPolicy(context.Context, *UpsertPrivacyPolicyRequest) (*UpsertPrivacyPolicyResponse, error) // ReadSubscription // // ReadSubscription returns the subscription with the given id. ReadSubscription(context.Context, *ReadSubscriptionRequest) (*ReadSubscriptionResponse, error) // AddMember // // AddMember adds a member to a subscription. AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error) // RemoveMember // // RemoveMember removes a member from a subscription. RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error) // contains filtered or unexported methods }
StoreServiceServer is the server API for StoreService service. All implementations must embed UnimplementedStoreServiceServer for forward compatibility
StoreService ¶
StoreService represents the service to manage the store.
type Subscription ¶
type Subscription struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // type is the type of the subscription. Type SubscriptionType `protobuf:"varint,3,opt,name=type,proto3,enum=store_manager.v1.SubscriptionType" json:"type,omitempty"` // code is the code of the subscription. Code *SubscriptionCode `protobuf:"varint,4,opt,name=code,proto3,enum=store_manager.v1.SubscriptionCode,oneof" json:"code,omitempty"` // category is the category of the subscription. Category *SubscriptionCategory `protobuf:"varint,5,opt,name=category,proto3,enum=store_manager.v1.SubscriptionCategory,oneof" json:"category,omitempty"` // subscription_payload is the payload of the subscription. SubscriptionPayload *SubscriptionPayload `protobuf:"bytes,6,opt,name=subscription_payload,json=subscriptionPayload,proto3,oneof" json:"subscription_payload,omitempty"` // product_payload is the payload of the product. ProductPayload *ProductPayload `protobuf:"bytes,7,opt,name=product_payload,json=productPayload,proto3,oneof" json:"product_payload,omitempty"` // contains filtered or unexported fields }
Subscription
Subscription represents a subscription that a user has purchased.
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetAppId ¶
func (x *Subscription) GetAppId() string
func (*Subscription) GetCategory ¶
func (x *Subscription) GetCategory() SubscriptionCategory
func (*Subscription) GetCode ¶
func (x *Subscription) GetCode() SubscriptionCode
func (*Subscription) GetProductPayload ¶
func (x *Subscription) GetProductPayload() *ProductPayload
func (*Subscription) GetSubscriptionPayload ¶
func (x *Subscription) GetSubscriptionPayload() *SubscriptionPayload
func (*Subscription) GetType ¶
func (x *Subscription) GetType() SubscriptionType
func (*Subscription) GetUserId ¶
func (x *Subscription) GetUserId() string
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type SubscriptionCategory ¶
type SubscriptionCategory int32
SubscriptionCategory
SubscriptionCategory represents the category of the subscription.
const ( SubscriptionCategory_SUBSCRIPTION_CATEGORY_UNSPECIFIED SubscriptionCategory = 0 // SUBSCRIPTION_CATEGORY_GIFT represents a subscription purchased as a gift. SubscriptionCategory_SUBSCRIPTION_CATEGORY_GIFT SubscriptionCategory = 1 // SUBSCRIPTION_CATEGORY_GROUP represents a subscription purchased as a group. SubscriptionCategory_SUBSCRIPTION_CATEGORY_GROUP SubscriptionCategory = 2 )
func (SubscriptionCategory) Descriptor ¶
func (SubscriptionCategory) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionCategory) Enum ¶
func (x SubscriptionCategory) Enum() *SubscriptionCategory
func (SubscriptionCategory) EnumDescriptor
deprecated
func (SubscriptionCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionCategory.Descriptor instead.
func (SubscriptionCategory) Number ¶
func (x SubscriptionCategory) Number() protoreflect.EnumNumber
func (SubscriptionCategory) String ¶
func (x SubscriptionCategory) String() string
func (SubscriptionCategory) Type ¶
func (SubscriptionCategory) Type() protoreflect.EnumType
type SubscriptionCode ¶
type SubscriptionCode int32
SubscriptionCode
SubscriptionCode represents the code of the subscription.
const ( SubscriptionCode_SUBSCRIPTION_CODE_UNSPECIFIED SubscriptionCode = 0 // SUBSCRIPTION_CODE_STARTED represents that a subscription has started. SubscriptionCode_SUBSCRIPTION_CODE_STARTED SubscriptionCode = 1 // SUBSCRIPTION_CODE_RENEWED represents that a subscription has been renewed. SubscriptionCode_SUBSCRIPTION_CODE_RENEWED SubscriptionCode = 2 // SUBSCRIPTION_CODE_CANCELLED represents that a subscription has been cancelled. SubscriptionCode_SUBSCRIPTION_CODE_CANCELLED SubscriptionCode = 3 // SUBSCRIPTION_CODE_EXPIRED represents that a subscription has expired. SubscriptionCode_SUBSCRIPTION_CODE_EXPIRED SubscriptionCode = 4 )
func (SubscriptionCode) Descriptor ¶
func (SubscriptionCode) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionCode) Enum ¶
func (x SubscriptionCode) Enum() *SubscriptionCode
func (SubscriptionCode) EnumDescriptor
deprecated
func (SubscriptionCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionCode.Descriptor instead.
func (SubscriptionCode) Number ¶
func (x SubscriptionCode) Number() protoreflect.EnumNumber
func (SubscriptionCode) String ¶
func (x SubscriptionCode) String() string
func (SubscriptionCode) Type ¶
func (SubscriptionCode) Type() protoreflect.EnumType
type SubscriptionPayload ¶
type SubscriptionPayload struct { // product_id is the unique identifier of the product. ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // purchase_token is the purchase token of the subscription. PurchaseToken string `protobuf:"bytes,2,opt,name=purchase_token,json=purchaseToken,proto3" json:"purchase_token,omitempty"` // provider is the provider of the subscription. Provider SubscriptionProvider `protobuf:"varint,3,opt,name=provider,proto3,enum=store_manager.v1.SubscriptionProvider" json:"provider,omitempty"` // purchased_at is the time when the subscription was purchased. PurchasedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=purchased_at,json=purchasedAt,proto3" json:"purchased_at,omitempty"` // expires_at is the time when the subscription expires. ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // contains filtered or unexported fields }
SubscriptionPayload
SubscriptionPayload represents the payload of a subscription.
func (*SubscriptionPayload) Descriptor
deprecated
func (*SubscriptionPayload) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionPayload.ProtoReflect.Descriptor instead.
func (*SubscriptionPayload) GetExpiresAt ¶
func (x *SubscriptionPayload) GetExpiresAt() *timestamppb.Timestamp
func (*SubscriptionPayload) GetProductId ¶
func (x *SubscriptionPayload) GetProductId() string
func (*SubscriptionPayload) GetProvider ¶
func (x *SubscriptionPayload) GetProvider() SubscriptionProvider
func (*SubscriptionPayload) GetPurchaseToken ¶
func (x *SubscriptionPayload) GetPurchaseToken() string
func (*SubscriptionPayload) GetPurchasedAt ¶
func (x *SubscriptionPayload) GetPurchasedAt() *timestamppb.Timestamp
func (*SubscriptionPayload) ProtoMessage ¶
func (*SubscriptionPayload) ProtoMessage()
func (*SubscriptionPayload) ProtoReflect ¶
func (x *SubscriptionPayload) ProtoReflect() protoreflect.Message
func (*SubscriptionPayload) Reset ¶
func (x *SubscriptionPayload) Reset()
func (*SubscriptionPayload) String ¶
func (x *SubscriptionPayload) String() string
type SubscriptionProvider ¶
type SubscriptionProvider int32
SubscriptionProvider
SubscriptionProvider represents the provider of the subscription.
const ( SubscriptionProvider_SUBSCRIPTION_PROVIDER_UNSPECIFIED SubscriptionProvider = 0 // SUBSCRIPTION_PROVIDER_APPLE represents a subscription purchased through Apple. SubscriptionProvider_SUBSCRIPTION_PROVIDER_APPLE SubscriptionProvider = 1 // SUBSCRIPTION_PROVIDER_GOOGLE represents a subscription purchased through Google. SubscriptionProvider_SUBSCRIPTION_PROVIDER_GOOGLE SubscriptionProvider = 2 // SUBSCRIPTION_PROVIDER_STRIPE represents a subscription purchased through Stripe. SubscriptionProvider_SUBSCRIPTION_PROVIDER_STRIPE SubscriptionProvider = 3 // SUBSCRIPTION_PROVIDER_PAYCOMET represents a subscription purchased through Paycomet. SubscriptionProvider_SUBSCRIPTION_PROVIDER_PAYCOMET SubscriptionProvider = 4 )
func (SubscriptionProvider) Descriptor ¶
func (SubscriptionProvider) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionProvider) Enum ¶
func (x SubscriptionProvider) Enum() *SubscriptionProvider
func (SubscriptionProvider) EnumDescriptor
deprecated
func (SubscriptionProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionProvider.Descriptor instead.
func (SubscriptionProvider) Number ¶
func (x SubscriptionProvider) Number() protoreflect.EnumNumber
func (SubscriptionProvider) String ¶
func (x SubscriptionProvider) String() string
func (SubscriptionProvider) Type ¶
func (SubscriptionProvider) Type() protoreflect.EnumType
type SubscriptionType ¶
type SubscriptionType int32
SubscriptionType
SubscriptionType represents the type of subscription that a user has purchased.
const ( SubscriptionType_SUBSCRIPTION_TYPE_UNSPECIFIED SubscriptionType = 0 // SUBSCRIPTION_TYPE_TRIAL represents a trial subscription. SubscriptionType_SUBSCRIPTION_TYPE_TRIAL SubscriptionType = 1 // SUBSCRIPTION_TYPE_PREMIUM represents a premium subscription. SubscriptionType_SUBSCRIPTION_TYPE_PREMIUM SubscriptionType = 2 // SUBSCRIPTION_TYPE_MANUAL_PREMIUM represents a manual premium subscription. SubscriptionType_SUBSCRIPTION_TYPE_MANUAL_PREMIUM SubscriptionType = 3 // SUBSCRIPTION_TYPE_FREE represents a user with no subscription. SubscriptionType_SUBSCRIPTION_TYPE_FREE SubscriptionType = 4 )
func (SubscriptionType) Descriptor ¶
func (SubscriptionType) Descriptor() protoreflect.EnumDescriptor
func (SubscriptionType) Enum ¶
func (x SubscriptionType) Enum() *SubscriptionType
func (SubscriptionType) EnumDescriptor
deprecated
func (SubscriptionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscriptionType.Descriptor instead.
func (SubscriptionType) Number ¶
func (x SubscriptionType) Number() protoreflect.EnumNumber
func (SubscriptionType) String ¶
func (x SubscriptionType) String() string
func (SubscriptionType) Type ¶
func (SubscriptionType) Type() protoreflect.EnumType
type UnimplementedStoreServiceServer ¶
type UnimplementedStoreServiceServer struct { }
UnimplementedStoreServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStoreServiceServer) AddMember ¶
func (UnimplementedStoreServiceServer) AddMember(context.Context, *AddMemberRequest) (*AddMemberResponse, error)
func (UnimplementedStoreServiceServer) CreateUser ¶
func (UnimplementedStoreServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedStoreServiceServer) DeleteUser ¶
func (UnimplementedStoreServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedStoreServiceServer) ReadSubscription ¶
func (UnimplementedStoreServiceServer) ReadSubscription(context.Context, *ReadSubscriptionRequest) (*ReadSubscriptionResponse, error)
func (UnimplementedStoreServiceServer) ReadUser ¶
func (UnimplementedStoreServiceServer) ReadUser(context.Context, *ReadUserRequest) (*ReadUserResponse, error)
func (UnimplementedStoreServiceServer) ReadUserByEmail ¶
func (UnimplementedStoreServiceServer) ReadUserByEmail(context.Context, *ReadUserByEmailRequest) (*ReadUserByEmailResponse, error)
func (UnimplementedStoreServiceServer) RemoveMember ¶
func (UnimplementedStoreServiceServer) RemoveMember(context.Context, *RemoveMemberRequest) (*RemoveMemberResponse, error)
func (UnimplementedStoreServiceServer) UpdateUser ¶
func (UnimplementedStoreServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
func (UnimplementedStoreServiceServer) UpsertPrivacyPolicy ¶
func (UnimplementedStoreServiceServer) UpsertPrivacyPolicy(context.Context, *UpsertPrivacyPolicyRequest) (*UpsertPrivacyPolicyResponse, error)
type UnsafeStoreServiceServer ¶
type UnsafeStoreServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StoreServiceServer will result in compilation errors.
type UpdateUserRequest ¶
type UpdateUserRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // name is the name of the user. Name *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"` // image is the image URL of the user. Image *string `protobuf:"bytes,5,opt,name=image,proto3,oneof" json:"image,omitempty"` // provider is the provider of the user. Provider *UserProvider `protobuf:"varint,6,opt,name=provider,proto3,enum=store_manager.v1.UserProvider,oneof" json:"provider,omitempty"` // contains filtered or unexported fields }
UpdateUserRequest
UpdateUserRequest represents a request to update a user.
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetAppId ¶
func (x *UpdateUserRequest) GetAppId() string
func (*UpdateUserRequest) GetImage ¶
func (x *UpdateUserRequest) GetImage() string
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetProvider ¶
func (x *UpdateUserRequest) GetProvider() UserProvider
func (*UpdateUserRequest) GetUserId ¶
func (x *UpdateUserRequest) GetUserId() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type UpdateUserResponse ¶
type UpdateUserResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
UpdateUserResponse
UpdateUserResponse represents a response to update a user.
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) GetSuccess ¶
func (x *UpdateUserResponse) GetSuccess() bool
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
type UpsertPrivacyPolicyRequest ¶
type UpsertPrivacyPolicyRequest struct { // user_id is the unique identifier of the user. UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // app_id is the unique identifier of the application. AppId string `protobuf:"bytes,2,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // business_communications is the acceptance of business communications. BusinessCommunications bool `` /* 128-byte string literal not displayed */ // marketing_segmentation is the acceptance of marketing segmentation. MarketingSegmentation bool `protobuf:"varint,4,opt,name=marketing_segmentation,json=marketingSegmentation,proto3" json:"marketing_segmentation,omitempty"` // data_transfer is the acceptance of data transfer. DataTransfer bool `protobuf:"varint,5,opt,name=data_transfer,json=dataTransfer,proto3" json:"data_transfer,omitempty"` // contains filtered or unexported fields }
UpsertPrivacyPolicyRequest
UpsertPrivacyPolicyRequest represents a request to create or update the privacy policy of a user.
func (*UpsertPrivacyPolicyRequest) Descriptor
deprecated
func (*UpsertPrivacyPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertPrivacyPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpsertPrivacyPolicyRequest) GetAppId ¶
func (x *UpsertPrivacyPolicyRequest) GetAppId() string
func (*UpsertPrivacyPolicyRequest) GetBusinessCommunications ¶
func (x *UpsertPrivacyPolicyRequest) GetBusinessCommunications() bool
func (*UpsertPrivacyPolicyRequest) GetDataTransfer ¶
func (x *UpsertPrivacyPolicyRequest) GetDataTransfer() bool
func (*UpsertPrivacyPolicyRequest) GetMarketingSegmentation ¶
func (x *UpsertPrivacyPolicyRequest) GetMarketingSegmentation() bool
func (*UpsertPrivacyPolicyRequest) GetUserId ¶
func (x *UpsertPrivacyPolicyRequest) GetUserId() string
func (*UpsertPrivacyPolicyRequest) ProtoMessage ¶
func (*UpsertPrivacyPolicyRequest) ProtoMessage()
func (*UpsertPrivacyPolicyRequest) ProtoReflect ¶
func (x *UpsertPrivacyPolicyRequest) ProtoReflect() protoreflect.Message
func (*UpsertPrivacyPolicyRequest) Reset ¶
func (x *UpsertPrivacyPolicyRequest) Reset()
func (*UpsertPrivacyPolicyRequest) String ¶
func (x *UpsertPrivacyPolicyRequest) String() string
type UpsertPrivacyPolicyResponse ¶
type UpsertPrivacyPolicyResponse struct { // success is the success of the operation. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
UpsertPrivacyPolicyResponse
UpsertPrivacyPolicyResponse represents a response to create or update the privacy policy of a user.
func (*UpsertPrivacyPolicyResponse) Descriptor
deprecated
func (*UpsertPrivacyPolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpsertPrivacyPolicyResponse.ProtoReflect.Descriptor instead.
func (*UpsertPrivacyPolicyResponse) GetSuccess ¶
func (x *UpsertPrivacyPolicyResponse) GetSuccess() bool
func (*UpsertPrivacyPolicyResponse) ProtoMessage ¶
func (*UpsertPrivacyPolicyResponse) ProtoMessage()
func (*UpsertPrivacyPolicyResponse) ProtoReflect ¶
func (x *UpsertPrivacyPolicyResponse) ProtoReflect() protoreflect.Message
func (*UpsertPrivacyPolicyResponse) Reset ¶
func (x *UpsertPrivacyPolicyResponse) Reset()
func (*UpsertPrivacyPolicyResponse) String ¶
func (x *UpsertPrivacyPolicyResponse) String() string
type User ¶
type User struct { // id is the unique identifier of the user. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // email is the email of the user. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // name is the name of the user. Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` // image is the image URL of the user. Image *string `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"` // provider is the provider of the user. Provider UserProvider `protobuf:"varint,5,opt,name=provider,proto3,enum=store_manager.v1.UserProvider" json:"provider,omitempty"` // privacy_policies is the list of privacy policies accepted by the user. PrivacyPolicies []*PrivacyPolicy `protobuf:"bytes,6,rep,name=privacy_policies,json=privacyPolicies,proto3" json:"privacy_policies,omitempty"` // contains filtered or unexported fields }
User
User represents a user of the application.
func (*User) Descriptor
deprecated
func (*User) GetPrivacyPolicies ¶
func (x *User) GetPrivacyPolicies() []*PrivacyPolicy
func (*User) GetProvider ¶
func (x *User) GetProvider() UserProvider
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserProvider ¶
type UserProvider int32
UserProvider
UserProvider represents the provider of the user.
const ( UserProvider_USER_PROVIDER_UNSPECIFIED UserProvider = 0 // USER_PROVIDER_APPLE represents a user registered through Apple. UserProvider_USER_PROVIDER_APPLE UserProvider = 1 // USER_PROVIDER_GOOGLE represents a user registered through Google. UserProvider_USER_PROVIDER_GOOGLE UserProvider = 2 // USER_PROVIDER_CUSTOM represents a user registered through email and password. UserProvider_USER_PROVIDER_CUSTOM UserProvider = 3 )
func (UserProvider) Descriptor ¶
func (UserProvider) Descriptor() protoreflect.EnumDescriptor
func (UserProvider) Enum ¶
func (x UserProvider) Enum() *UserProvider
func (UserProvider) EnumDescriptor
deprecated
func (UserProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserProvider.Descriptor instead.
func (UserProvider) Number ¶
func (x UserProvider) Number() protoreflect.EnumNumber
func (UserProvider) String ¶
func (x UserProvider) String() string
func (UserProvider) Type ¶
func (UserProvider) Type() protoreflect.EnumType