builder

package
v0.0.0-...-91ee7f2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: BSD-3-Clause Imports: 14 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 BuildAuthClient

func BuildAuthClient(host, username, password string) (*sdkauth.Client, error)

BuildAuthClient builds auth service client.

func BuildRedisClient

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

BuildRedisClient builds an instance of redis client.

func BuildTemporalClient

func BuildTemporalClient(address string) (client.Client, error)

BuildTemporalClient builds temporal client.

func BuildUserCommandHandler

func BuildUserCommandHandler(dep *Dependency) *handler.UserCommand

BuildUserCommandHandler builds user command handler including all of its dependencies.

func BuildUserCommandInternalHandler

func BuildUserCommandInternalHandler(dep *Dependency) *handler.UserCommandInternal

BuildUserCommandInternalHandler builds user command handler including all of its dependencies.

func BuildUserQueryHandler

func BuildUserQueryHandler(dep *Dependency) *handler.UserQuery

BuildUserQueryHandler builds user query handler including all of its dependencies.

func BuildWalletClient

func BuildWalletClient(host, username, password string) (*sdkwallet.Client, error)

BuildWalletClient builds wallet service client.

Types

type Dependency

type Dependency struct {
	Config         *config.Config
	TemporalClient client.Client
	DB             uow.Tr
	RedisClient    goredis.Cmdable
	TxManager      uow.TxManager
}

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