Documentation ¶
Index ¶
- type CiamWatcher
- type Cognito
- func (c *Cognito) Authenticate(m model.CiamAuthenticationRequest) (*model.CiamAuthenticationResponse, *model.TechnicalError)
- func (c *Cognito) JwtInfo(t string) (map[string]interface{}, *model.TechnicalError)
- func (c *Cognito) OnboardPartner(m model.CiamOnboardPartnerRequest) (*model.CiamUserResponse, *model.TechnicalError)
- type Consul
- type ConsulWatcher
- type Gopaid
- type GopaidAdapter
- type Josvo
- type JosvoAdapter
- type Linksaja
- type LinksajaAdapter
- type Middletrans
- type MiddletransAdapter
- type Rest
- type S3Bucket
- type S3Watcher
- type SES
- type SESAdapter
- type SQS
- type SQSAdapter
- type Xenit
- type XenitAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiamWatcher ¶
type CiamWatcher interface { JwtInfo(t string) (map[string]interface{}, *model.TechnicalError) OnboardPartner(m model.CiamOnboardPartnerRequest) (*model.CiamUserResponse, *model.TechnicalError) Authenticate(m model.CiamAuthenticationRequest) (*model.CiamAuthenticationResponse, *model.TechnicalError) }
func NewCognito ¶
func NewCognito(c Cognito) CiamWatcher
type Cognito ¶
type Cognito struct { Provider *cognito.CognitoIdentityProvider UserPool string ClientId string Scrt string Region string JWK string Logger *zap.Logger }
func (*Cognito) Authenticate ¶
func (c *Cognito) Authenticate(m model.CiamAuthenticationRequest) (*model.CiamAuthenticationResponse, *model.TechnicalError)
func (*Cognito) JwtInfo ¶
func (c *Cognito) JwtInfo(t string) (map[string]interface{}, *model.TechnicalError)
func (*Cognito) OnboardPartner ¶
func (c *Cognito) OnboardPartner(m model.CiamOnboardPartnerRequest) (*model.CiamUserResponse, *model.TechnicalError)
type ConsulWatcher ¶
type ConsulWatcher interface {
Register() *model.TechnicalError
}
func NewConsul ¶
func NewConsul(c Consul) ConsulWatcher
type Gopaid ¶
func (*Gopaid) Topup ¶
func (g *Gopaid) Topup(inp *model.GopaidTopUpRequest) (*model.GopaidTopupResponse, *model.TechnicalError)
type GopaidAdapter ¶
type GopaidAdapter interface {
Topup(inp *model.GopaidTopUpRequest) (*model.GopaidTopupResponse, *model.TechnicalError)
}
func NewGopaid ¶
func NewGopaid(g Gopaid) GopaidAdapter
type Josvo ¶
func (*Josvo) AccountTransfer ¶
func (j *Josvo) AccountTransfer(inp *model.JosvoAccountTransferRequest) (*model.JosvoAccountTransferResponse, *model.TechnicalError)
type JosvoAdapter ¶
type JosvoAdapter interface {
AccountTransfer(inp *model.JosvoAccountTransferRequest) (*model.JosvoAccountTransferResponse, *model.TechnicalError)
}
func NewJosvo ¶
func NewJosvo(j Josvo) JosvoAdapter
type Linksaja ¶
func (*Linksaja) Authorization ¶
func (l *Linksaja) Authorization() (*model.LinksajaAuthorizationResponse, *model.TechnicalError)
func (*Linksaja) FundTransfer ¶
func (l *Linksaja) FundTransfer(inp *model.LinksajaFundTransferRequest) (*model.LinksajaFundTransferResponse, *model.TechnicalError)
type LinksajaAdapter ¶
type LinksajaAdapter interface { Authorization() (*model.LinksajaAuthorizationResponse, *model.TechnicalError) FundTransfer(inp *model.LinksajaFundTransferRequest) (*model.LinksajaFundTransferResponse, *model.TechnicalError) }
func NewLinksaja ¶
func NewLinksaja(l Linksaja) LinksajaAdapter
type Middletrans ¶
func (*Middletrans) WalletTransfer ¶
func (mt *Middletrans) WalletTransfer(inp *model.MiddletransWalletTransferRequest) (*model.MiddletransWalletTransferResponse, *model.TechnicalError)
type MiddletransAdapter ¶
type MiddletransAdapter interface { WalletTransfer(inp *model.MiddletransWalletTransferRequest) (*model.MiddletransWalletTransferResponse, *model.TechnicalError) }
func NewMiddletrans ¶
func NewMiddletrans(mt Middletrans) MiddletransAdapter
type Rest ¶
type Rest struct { BackoffInterval time.Duration MaxJitterInterval time.Duration Timeout time.Duration }
func (*Rest) Client ¶
func (r *Rest) Client() *httpclient.Client
type S3Bucket ¶
func (*S3Bucket) Upload ¶
func (b *S3Bucket) Upload(req *model.S3UploadRequest) (*s3manager.UploadOutput, *model.TechnicalError)
type S3Watcher ¶
type S3Watcher interface {
Upload(req *model.S3UploadRequest) (*s3manager.UploadOutput, *model.TechnicalError)
}
type SES ¶
func (*SES) SendEmail ¶
func (s *SES) SendEmail(m model.SendEmailRequest) (*model.TransactionResponse, *model.TechnicalError)
type SESAdapter ¶
type SESAdapter interface {
SendEmail(m model.SendEmailRequest) (*model.TransactionResponse, *model.TechnicalError)
}
func NewSES ¶
func NewSES(s SES) SESAdapter
type SQS ¶
func (*SQS) DeleteMessages ¶
func (s *SQS) DeleteMessages(q string, h string) *sqs.DeleteMessageOutput
type SQSAdapter ¶
type SQSAdapter interface { GetMessages(q string) *sqs.Message DeleteMessages(q string, h string) *sqs.DeleteMessageOutput SendMessage(q string, msg string) error }
func NewSQS ¶
func NewSQS(c SQS) SQSAdapter
type Xenit ¶
func (*Xenit) WalletTopup ¶
func (x *Xenit) WalletTopup(inp *model.XenitWalletTopupRequest) (*model.XenitWalletTopupResponse, *model.TechnicalError)
type XenitAdapter ¶
type XenitAdapter interface {
WalletTopup(inp *model.XenitWalletTopupRequest) (*model.XenitWalletTopupResponse, *model.TechnicalError)
}
func NewXenit ¶
func NewXenit(x Xenit) XenitAdapter
Click to show internal directories.
Click to hide internal directories.