client

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// D is single instance of client.
	D driver.Driver

	// M is single instance of management service client.
	M driver.Management

	// O is single instance of observability service client.
	O driver.Observability
)

Functions

func Get

func Get() driver.Driver

Get returns an instance of client.

func GetDB

func GetDB() driver.Database

func GetSearch

func GetSearch() driver.SearchClient

func Init

func Init(inCfg *config.Config) error

func InitLow

func InitLow() error

func ManagementGet

func ManagementGet() driver.Management

ManagementGet returns an instance of authentication API client.

func ObservabilityGet

func ObservabilityGet() driver.Observability

func Transact

func Transact(bctx context.Context, db string, fn func(ctx context.Context, tx driver.Tx) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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