data

package
v0.1.2-bate Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README ยถ

Data Directory Documentation

Welcome to this documentation! ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ Here, we will delve into the main purpose and usage of the data directory.

1. The Data Handler: The Data Directory ๐Ÿ—ƒ๏ธ

The data directory is the data handler of our project. It's a place dedicated to processing data, primarily focusing on code logic related to databases, remote calls, and middleware communication. You can think of it as the engine room ๐Ÿญ of a ship, where the actual power (data handling) is generated.

Unlike the biz directory, which focuses on business logic, the data directory doesn't concern itself with the 'what' (the business logic). Instead, it's all about the 'how' - how to implement the interfaces defined in the biz layer.

2. Role in Data Source Management and External Communication ๐ŸŽฏ

The data directory is also the manager of our data sources. It handles multiple data sources, manages Redis, various caches, and maintains the remote gRPC clients. It's like the switchboard operator ๐Ÿ“ž of our project, ensuring all external communications are handled correctly and efficiently.

By doing so, the data directory ensures that our project can communicate effectively with various external services and databases, making our application more robust and versatile. ๐Ÿš€๐Ÿš€๐Ÿš€

We hope this guide helps you navigate the data directory more effectively. Happy coding! ๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป

Documentation ยถ

Index ยถ

Constants ยถ

This section is empty.

Variables ยถ

Functions ยถ

func NewLoginRepo ยถ

func NewLoginRepo(data *Data, logger log.Logger) biz.LoginRepo

Types ยถ

type Data ยถ

type Data struct {
	// contains filtered or unexported fields
}

func NewData ยถ

func NewData(dri *sql.Driver, rdb *redis.Client, logger log.Logger) (*Data, error)

Directories ยถ

Path Synopsis
ent

Jump to

Keyboard shortcuts

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