database

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 3 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[MongoConfig DBConfig, CQLDBConfig DBConfig] struct {
	Use     DBUse       `yaml:"use" json:"use"`
	MongoDB MongoConfig `yaml:"mongoDB" json:"mongoDb"`
	CqlDB   CQLDBConfig `yaml:"cqlDB" json:"cqlDb"`
}

func (*Config[MongoConfig, CQLDBConfig]) Validate

func (c *Config[MongoConfig, CQLDBConfig]) Validate() error

type DBConfig

type DBConfig interface {
	Validate() error
}

type DBUse

type DBUse string
const (
	MongoDB DBUse = "mongoDB"
	CqlDB   DBUse = "cqlDB"
)

func (DBUse) ToLower

func (u DBUse) ToLower() DBUse

Jump to

Keyboard shortcuts

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