broker

package
v0.0.1-20220720-0001 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAllClients

func GenerateAllClients(ctx context.Context) map[string]*client.Client

GenerateAllClients -> it's being used only for bootstrap!

func GetClient

func GetClient(ctx context.Context, instanceName string) (*client.Client, error)

func GetConfig

func GetConfig(instanceName string) (config.Config, error)

func GetDefaultClient

func GetDefaultClient() (*client.Client, error)

func New

func New(
	ctx context.Context,
	config config.Config,
) (*client.Client, error)

New -> creates a new client based on the provided configuration

func NewClient

func NewClient(ctx context.Context, instanceName string) (*client.Client, error)

NewClient -> Generates a new instance based on the configuration! Multiple instances can be generated based on the same configuration

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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