config

package
v3.80.13 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Common
	// contains filtered or unexported fields
}

Config is a configuration of scheme client

func New

func New(opts ...Option) *Config

func (*Config) Database

func (c *Config) Database() string

Database returns database name

func (*Config) Trace

func (c *Config) Trace() *trace.Scheme

Trace returns trace over scheme client calls

type Option

type Option func(c *Config)

func With

func With(config config.Common) Option

With applies common configuration params

func WithDatabaseName

func WithDatabaseName(dbName string) Option

WithDatabaseName applies database name

func WithTrace

func WithTrace(trace trace.Scheme, opts ...trace.SchemeComposeOption) Option

WithTrace appends scheme trace to early defined traces

Jump to

Keyboard shortcuts

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