Documentation
¶
Index ¶
- func NewApiKeyApiService(authenticationService service.IAuthenticationService, ...) configApi.ApiKeyApiServicer
- func NewAuthenticationApiService(authenticationService service.IAuthenticationService) configApi.AuthenticationApiServicer
- func NewConfigApiService(authenticationService service.IAuthenticationService) configApi.ConfigApiServicer
- func NewLoggingApiService(authenticationService service.IAuthenticationService, ...) configApi.LoggingApiServicer
- func NewWalletApiService(authenticationService service.IAuthenticationService, ...) configApi.WalletApiServicer
- type ApiKeyApiService
- func (s *ApiKeyApiService) DeleteApiKey(_ context.Context, apiKeyId string, authorization string) (configApi.ImplResponse, error)
- func (s *ApiKeyApiService) GenerateApiKey(_ context.Context, authorization string, ...) (configApi.ImplResponse, error)
- func (s *ApiKeyApiService) GetApiKey(_ context.Context, mode string, keyType string, authorization string) (configApi.ImplResponse, error)
- type AuthenticationApiService
- func (s *AuthenticationApiService) Login(_ context.Context, loginRequestDto configApi.LoginRequestDto) (configApi.ImplResponse, error)
- func (s *AuthenticationApiService) Logout(_ context.Context) (configApi.ImplResponse, error)
- func (s *AuthenticationApiService) RegisterMerchant(_ context.Context, registerRequestDto configApi.RegisterRequestDto) (configApi.ImplResponse, error)
- func (s *AuthenticationApiService) VerifyEmail(_ context.Context, email string, verificationCode int64) (configApi.ImplResponse, error)
- type ConfigApiService
- type LoggingApiService
- type WalletApiService
- func (s *WalletApiService) AddWallet(_ context.Context, authorization string, ...) (configApi.ImplResponse, error)
- func (s *WalletApiService) DeleteWallet(ctx context.Context, walletId string, authorization string) (configApi.ImplResponse, error)
- func (s *WalletApiService) GetWallets(ctx context.Context, mode string, authorization string) (configApi.ImplResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiKeyApiService ¶
func NewApiKeyApiService( authenticationService service.IAuthenticationService, apiKeyRepository repository.IApiKeyRepository, merchantRepository repository.IMerchantRepository, ) configApi.ApiKeyApiServicer
NewApiKeyApiService creates a default api service
func NewAuthenticationApiService ¶
func NewAuthenticationApiService(authenticationService service.IAuthenticationService) configApi.AuthenticationApiServicer
NewAuthenticationApiService creates a default api service
func NewConfigApiService ¶ added in v0.2.0
func NewConfigApiService(authenticationService service.IAuthenticationService) configApi.ConfigApiServicer
NewConfigApiService creates a default api service
func NewLoggingApiService ¶
func NewLoggingApiService( authenticationService service.IAuthenticationService, paymentRepository repository.IPaymentRepository, ) configApi.LoggingApiServicer
NewLoggingApiService creates a default api service
func NewWalletApiService ¶
func NewWalletApiService( authenticationService service.IAuthenticationService, merchantRepository repository.IMerchantRepository, ) configApi.WalletApiServicer
NewWalletApiService creates a default api service
Types ¶
type ApiKeyApiService ¶
type ApiKeyApiService struct {
// contains filtered or unexported fields
}
ApiKeyApiService is a service that implements the logic for the ApiKeyApiServicer This service should implement the business logic for every endpoint for the ApiKeyApi API. Include any external packages or services that will be required by this service.
func (*ApiKeyApiService) DeleteApiKey ¶
func (s *ApiKeyApiService) DeleteApiKey(_ context.Context, apiKeyId string, authorization string) (configApi.ImplResponse, error)
DeleteApiKey - delete api key
func (*ApiKeyApiService) GenerateApiKey ¶
func (s *ApiKeyApiService) GenerateApiKey(_ context.Context, authorization string, apiKeyRequestDto configApi.ApiKeyRequestDto) (configApi.ImplResponse, error)
GenerateApiKey - create new secret api key
type AuthenticationApiService ¶
type AuthenticationApiService struct {
// contains filtered or unexported fields
}
AuthenticationApiService is a service that implements the logic for the AuthenticationApiServicer This service should implement the business logic for every endpoint for the AuthenticationApi API. Include any external packages or services that will be required by this service.
func (*AuthenticationApiService) Login ¶
func (s *AuthenticationApiService) Login(_ context.Context, loginRequestDto configApi.LoginRequestDto) (configApi.ImplResponse, error)
Login - Authenticate to chaingate
func (*AuthenticationApiService) Logout ¶
func (s *AuthenticationApiService) Logout(_ context.Context) (configApi.ImplResponse, error)
Logout - Logs out the merchant
func (*AuthenticationApiService) RegisterMerchant ¶ added in v0.2.0
func (s *AuthenticationApiService) RegisterMerchant(_ context.Context, registerRequestDto configApi.RegisterRequestDto) (configApi.ImplResponse, error)
RegisterMerchant - Merchant registration
func (*AuthenticationApiService) VerifyEmail ¶
func (s *AuthenticationApiService) VerifyEmail(_ context.Context, email string, verificationCode int64) (configApi.ImplResponse, error)
VerifyEmail - Verify merchant E-Mail
type ConfigApiService ¶ added in v0.2.0
type ConfigApiService struct {
// contains filtered or unexported fields
}
ConfigApiService is a service that implements the logic for the ConfigApiServicer This service should implement the business logic for every endpoint for the ConfigApi API. Include any external packages or services that will be required by this service.
func (*ConfigApiService) GetConfig ¶ added in v0.2.0
func (s *ConfigApiService) GetConfig(_ context.Context, authorization string) (configApi.ImplResponse, error)
GetConfig - Get the configuration
type LoggingApiService ¶
type LoggingApiService struct {
// contains filtered or unexported fields
}
LoggingApiService is a service that implements the logic for the LoggingApiServicer This service should implement the business logic for every endpoint for the LoggingApi API. Include any external packages or services that will be required by this service.
func (*LoggingApiService) GetLoggingInformation ¶
func (s *LoggingApiService) GetLoggingInformation(_ context.Context, mode string, authorization string) (configApi.ImplResponse, error)
GetLoggingInformation - get logging information
type WalletApiService ¶
type WalletApiService struct {
// contains filtered or unexported fields
}
WalletApiService is a service that implements the logic for the WalletApiServicer This service should implement the business logic for every endpoint for the WalletApi API. Include any external packages or services that will be required by this service.
func (*WalletApiService) AddWallet ¶
func (s *WalletApiService) AddWallet(_ context.Context, authorization string, walletRequestDto configApi.WalletRequestDto) (configApi.ImplResponse, error)
AddWallet - add new wallet address
func (*WalletApiService) DeleteWallet ¶
func (s *WalletApiService) DeleteWallet(ctx context.Context, walletId string, authorization string) (configApi.ImplResponse, error)
DeleteWallet - delete wallet
func (*WalletApiService) GetWallets ¶
func (s *WalletApiService) GetWallets(ctx context.Context, mode string, authorization string) (configApi.ImplResponse, error)
GetWallets - get wallets