storage

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v2.1.0

type Option func(opt *Options)

func CertFile added in v2.1.1

func CertFile(certFile string) Option

func KeyFile added in v2.1.1

func KeyFile(keyFile string) Option

func PoolSize added in v2.1.0

func PoolSize(poolSize int) Option

func RootCA added in v2.1.0

func RootCA(rootCAFile string) Option

func SSLEnabled added in v2.1.0

func SSLEnabled(sslEnabled bool) Option

func Timeout added in v2.1.0

func Timeout(timeout string) Option

func VerifyPeer added in v2.1.0

func VerifyPeer(verifyPeer bool) Option

type Options added in v2.1.0

type Options struct {
	URI        string `yaml:"uri"`
	PoolSize   int    `yaml:"poolSize"`
	SSLEnabled bool   `yaml:"sslEnabled"`
	RootCA     string `yaml:"rootCAFile"`
	Timeout    string `yaml:"timeout"`
	VerifyPeer bool   `yaml:"verifyPeer"`
	CertFile   string `yaml:"certFile"`
	KeyFile    string `yaml:"keyFile"`
}

Options is yaml file struct to set db config

func NewConfig added in v2.1.0

func NewConfig(uri string, opts ...func(opt *Options)) Options

Jump to

Keyboard shortcuts

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