1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 02:13:49 +09:00

Split GetDataNameRegister and GetDataNameRegisterForSpace; Test tiers

This commit is contained in:
Anton Akentev 2024-01-24 21:36:36 +00:00
parent 4659755553
commit 1e1ce475f9
10 changed files with 502 additions and 117 deletions

View file

@ -20,6 +20,7 @@ const CName = "any-pp.drpcclient"
type AnyPpClientService interface {
GetSubscriptionStatus(ctx context.Context, in *pp.GetSubscriptionRequestSigned) (out *pp.GetSubscriptionResponse, err error)
BuySubscription(ctx context.Context, in *pp.BuySubscriptionRequestSigned) (out *pp.BuySubscriptionResponse, err error)
GetSubscriptionPortalLink(ctx context.Context, in *pp.GetSubscriptionPortalLinkRequestSigned) (out *pp.GetSubscriptionPortalLinkResponse, err error)
app.Component
}
@ -80,3 +81,13 @@ func (s *service) BuySubscription(ctx context.Context, in *pp.BuySubscriptionReq
})
return
}
func (s *service) GetSubscriptionPortalLink(ctx context.Context, in *pp.GetSubscriptionPortalLinkRequestSigned) (out *pp.GetSubscriptionPortalLinkResponse, err error) {
err = s.doClient(ctx, func(cl pp.DRPCAnyPaymentProcessingClient) error {
if out, err = cl.GetSubscriptionPortalLink(ctx, in); err != nil {
return rpcerr.Unwrap(err)
}
return nil
})
return
}