Versions in this module Expand all Collapse all v1 v1.0.0 Jan 8, 2023 Changes in this version + type CiamWatcher interface + Authenticate func(m model.CiamAuthenticationRequest) (*model.CiamAuthenticationResponse, *model.TechnicalError) + JwtInfo func(t string) (map[string]interface{}, *model.TechnicalError) + OnboardPartner func(m model.CiamOnboardPartnerRequest) (*model.CiamUserResponse, *model.TechnicalError) + func NewCognito(c Cognito) CiamWatcher + type Cognito struct + ClientId string + JWK string + Logger *zap.Logger + Provider *cognito.CognitoIdentityProvider + Region string + Scrt string + UserPool string + 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 struct + Host string + Logger *zap.Logger + Port int + Service string + Viper *viper.Viper + func (c *Consul) Register() *model.TechnicalError + type ConsulWatcher interface + Register func() *model.TechnicalError + func NewConsul(c Consul) ConsulWatcher + type Gopaid struct + ApiKey string + Host string + Logger *zap.Logger + func (g *Gopaid) Topup(inp *model.GopaidTopUpRequest) (*model.GopaidTopupResponse, *model.TechnicalError) + type GopaidAdapter interface + Topup func(inp *model.GopaidTopUpRequest) (*model.GopaidTopupResponse, *model.TechnicalError) + func NewGopaid(g Gopaid) GopaidAdapter + type Josvo struct + ApiKey string + Host string + Logger *zap.Logger + func (j *Josvo) AccountTransfer(inp *model.JosvoAccountTransferRequest) (*model.JosvoAccountTransferResponse, *model.TechnicalError) + type JosvoAdapter interface + AccountTransfer func(inp *model.JosvoAccountTransferRequest) (*model.JosvoAccountTransferResponse, *model.TechnicalError) + func NewJosvo(j Josvo) JosvoAdapter + type Linksaja struct + Host string + Logger *zap.Logger + Password string + Username string + func (l *Linksaja) Authorization() (*model.LinksajaAuthorizationResponse, *model.TechnicalError) + func (l *Linksaja) FundTransfer(inp *model.LinksajaFundTransferRequest) (*model.LinksajaFundTransferResponse, *model.TechnicalError) + type LinksajaAdapter interface + Authorization func() (*model.LinksajaAuthorizationResponse, *model.TechnicalError) + FundTransfer func(inp *model.LinksajaFundTransferRequest) (*model.LinksajaFundTransferResponse, *model.TechnicalError) + func NewLinksaja(l Linksaja) LinksajaAdapter + type Middletrans struct + ApiKey string + Host string + Logger *zap.Logger + func (mt *Middletrans) WalletTransfer(inp *model.MiddletransWalletTransferRequest) (*model.MiddletransWalletTransferResponse, *model.TechnicalError) + type MiddletransAdapter interface + WalletTransfer func(inp *model.MiddletransWalletTransferRequest) (*model.MiddletransWalletTransferResponse, *model.TechnicalError) + func NewMiddletrans(mt Middletrans) MiddletransAdapter + type Rest struct + BackoffInterval time.Duration + MaxJitterInterval time.Duration + Timeout time.Duration + func (r *Rest) Client() *httpclient.Client + type S3Bucket struct + Bucket string + Logger *zap.Logger + Uploader *s3manager.Uploader + func (b *S3Bucket) Upload(req *model.S3UploadRequest) (*s3manager.UploadOutput, *model.TechnicalError) + type S3Watcher interface + Upload func(req *model.S3UploadRequest) (*s3manager.UploadOutput, *model.TechnicalError) + func NewS3(b S3Bucket) S3Watcher + type SES struct + Logger *zap.Logger + SES *sesv2.SESV2 + Sender *string + func (s *SES) SendEmail(m model.SendEmailRequest) (*model.TransactionResponse, *model.TechnicalError) + type SESAdapter interface + SendEmail func(m model.SendEmailRequest) (*model.TransactionResponse, *model.TechnicalError) + func NewSES(s SES) SESAdapter + type SQS struct + SQS *sqs.SQS + func (s *SQS) DeleteMessages(q string, h string) *sqs.DeleteMessageOutput + func (s *SQS) GetMessages(t string) *sqs.Message + func (s *SQS) SendMessage(q string, msg string) error + type SQSAdapter interface + DeleteMessages func(q string, h string) *sqs.DeleteMessageOutput + GetMessages func(q string) *sqs.Message + SendMessage func(q string, msg string) error + func NewSQS(c SQS) SQSAdapter + type Xenit struct + BasicAuthorization string + Host string + Logger *zap.Logger + func (x *Xenit) WalletTopup(inp *model.XenitWalletTopupRequest) (*model.XenitWalletTopupResponse, *model.TechnicalError) + type XenitAdapter interface + WalletTopup func(inp *model.XenitWalletTopupRequest) (*model.XenitWalletTopupResponse, *model.TechnicalError) + func NewXenit(x Xenit) XenitAdapter