Documentation ¶
Index ¶
- type Repository
- func (r *Repository) AddSubscription(ctx context.Context, req *recurringpb.Subscription, ...) error
- func (r *Repository) DeleteSavedCard(ctx context.Context, req *recurringpb.DeleteSavedCardRequest, ...) error
- func (r *Repository) DeleteSubscription(ctx context.Context, req *recurringpb.Subscription, ...) error
- func (r *Repository) FindSavedCardById(ctx context.Context, req *recurringpb.FindByStringValue, ...) error
- func (r *Repository) FindSavedCards(ctx context.Context, req *recurringpb.SavedCardRequest, ...) error
- func (r *Repository) FindSubscriptions(ctx context.Context, req *recurringpb.FindSubscriptionsRequest, ...) error
- func (r *Repository) GetSubscription(ctx context.Context, req *recurringpb.GetSubscriptionRequest, ...) error
- func (r *Repository) InsertSavedCard(ctx context.Context, req *recurringpb.SavedCardRequest, _ *recurringpb.Result) error
- func (r *Repository) UpdateSubscription(ctx context.Context, req *recurringpb.Subscription, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepositoryService ¶ added in v1.0.105
func NewRepositoryService(db *mongodb.Source) *Repository
func (*Repository) AddSubscription ¶ added in v1.5.0
func (r *Repository) AddSubscription( ctx context.Context, req *recurringpb.Subscription, res *recurringpb.AddSubscriptionResponse, ) error
func (*Repository) DeleteSavedCard ¶
func (r *Repository) DeleteSavedCard( ctx context.Context, req *recurringpb.DeleteSavedCardRequest, rsp *recurringpb.DeleteSavedCardResponse, ) error
func (*Repository) DeleteSubscription ¶ added in v1.5.0
func (r *Repository) DeleteSubscription( ctx context.Context, req *recurringpb.Subscription, res *recurringpb.DeleteSubscriptionResponse, ) error
func (*Repository) FindSavedCardById ¶
func (r *Repository) FindSavedCardById( ctx context.Context, req *recurringpb.FindByStringValue, rsp *recurringpb.SavedCard, ) error
func (*Repository) FindSavedCards ¶
func (r *Repository) FindSavedCards( ctx context.Context, req *recurringpb.SavedCardRequest, rsp *recurringpb.SavedCardList, ) error
func (*Repository) FindSubscriptions ¶ added in v1.5.0
func (r *Repository) FindSubscriptions( ctx context.Context, req *recurringpb.FindSubscriptionsRequest, res *recurringpb.FindSubscriptionsResponse, ) error
func (*Repository) GetSubscription ¶ added in v1.5.0
func (r *Repository) GetSubscription( ctx context.Context, req *recurringpb.GetSubscriptionRequest, res *recurringpb.GetSubscriptionResponse, ) error
func (*Repository) InsertSavedCard ¶
func (r *Repository) InsertSavedCard( ctx context.Context, req *recurringpb.SavedCardRequest, _ *recurringpb.Result, ) error
func (*Repository) UpdateSubscription ¶ added in v1.5.0
func (r *Repository) UpdateSubscription( ctx context.Context, req *recurringpb.Subscription, res *recurringpb.UpdateSubscriptionResponse, ) error
Click to show internal directories.
Click to hide internal directories.