configService

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func (*ApiKeyApiService) GetApiKey

func (s *ApiKeyApiService) GetApiKey(_ context.Context, mode string, keyType string, authorization string) (configApi.ImplResponse, error)

GetApiKey - gets the 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

Login - Authenticate to chaingate

func (*AuthenticationApiService) Logout

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL