config

package
v0.0.0-...-e0c2b11 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 1 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 {
	Name     string
	User     string
	Password string
	Host     string
	Port     string
	URI      *string

	Timeout *int64
}

func (*Config) DBHost

func (cfg *Config) DBHost() string

func (*Config) DBName

func (cfg *Config) DBName() string

func (*Config) DBPassword

func (cfg *Config) DBPassword() string

func (*Config) DBPort

func (cfg *Config) DBPort() string

func (*Config) DBTimeout

func (cfg *Config) DBTimeout() *int64

func (*Config) DBURI

func (cfg *Config) DBURI() *string

func (*Config) DBUser

func (cfg *Config) DBUser() string

func (*Config) SetURI

func (cfg *Config) SetURI() error

type DatabaseConfig

type DatabaseConfig interface {
	DBName() string
	DBUser() string
	DBPassword() string
	DBHost() string
	DBPort() string

	DBURI() *string
	DBTimeout() *int64

	SetURI() error
}

DatabaseConfig --> Basic configuration of MongoDB database

Jump to

Keyboard shortcuts

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