builder

package
v0.0.0-...-c3afde3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: BSD-3-Clause Imports: 11 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 BuildBunDB

func BuildBunDB(cfg pgsdk.Config) (*pgsdk.BunDB, error)

BuildBunDB builds BunDB.

func BuildKeycloakClient

func BuildKeycloakClient(cfg config.Keycloak) kcsdk.Keycloak

BuildKeycloakClient builds a keycloak 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, error)

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.

Types

type Dependency

type Dependency struct {
	Config         *config.Config
	KeycloakClient kcsdk.Keycloak
	TemporalClient client.Client
	DB             uow.DB
}

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