builder

package
v0.0.0-...-0011e7b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package builder provides functionality to build the representative flows. Imagine this package as an implementation of builder design pattern. Read more: https://sourcemaking.com/design_patterns/builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildQueries

func BuildQueries(tr uow.Tr, getter uow.TxGetter) *db.Queries

BuildQueries builds sqlc queries.

func BuildRedisClient

func BuildRedisClient(cfg *config.Redis) (*goredis.Client, error)

BuildRedisClient builds an instance of redis client.

func BuildWalletCommandHandler

func BuildWalletCommandHandler(dep *Dependency) *handler.WalletCommand

BuildWalletCommandHandler builds wallet command handler including all of its dependencies.

Types

type Dependency

type Dependency struct {
	Config      *config.Config
	RedisClient goredis.Cmdable
	TxManager   uow.TxManager
	Queries     *db.Queries
}

Dependency holds any dependency to build full use cases.

Jump to

Keyboard shortcuts

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