service

package
v0.0.0-...-fb81480 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package service contains business logic and data operations, interacting with external systems such as databases and APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*auth.Auth           // Embeds Auth for authentication-related operations
	*wallet.Wallet       // Embeds Wallet for wallet-related operations
	*grpcclient.Exchange // Embeds Exchange to get exchange-rates data
}

Service bundles authentication, wallet, and exchange services together.

func New

func New(repos *storage.Storage, servConfig *configs.ServerConfig) *Service

New creates and returns a new instance of Service, combining Auth, Wallet, and Exchange services.

Directories

Path Synopsis
Package auth handles user authentication functionalities such as user creation, token generation, and token parsing.
Package auth handles user authentication functionalities such as user creation, token generation, and token parsing.
Package grpcclient provides gRPC client functionality for exchanging rates and performing wallet operations.
Package grpcclient provides gRPC client functionality for exchanging rates and performing wallet operations.
Package wallet provides functionality related to user wallets, including balance retrieval, deposits, and withdrawals.
Package wallet provides functionality related to user wallets, including balance retrieval, deposits, and withdrawals.

Jump to

Keyboard shortcuts

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