config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global interface{}

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Key   string
	Value string
}

type MongoDB

type MongoDB struct {
	Host     string
	Port     int
	Username string
	Password string
	Timeout  int
	Database string
}

func (MongoDB) GetAddress

func (r MongoDB) GetAddress() string

func (MongoDB) GetDatabase

func (r MongoDB) GetDatabase() string

func (MongoDB) GetHost

func (r MongoDB) GetHost() string

func (MongoDB) GetPassword

func (r MongoDB) GetPassword() string

func (MongoDB) GetPort

func (r MongoDB) GetPort() int

func (MongoDB) GetTimeout

func (r MongoDB) GetTimeout() int

func (MongoDB) GetURI

func (r MongoDB) GetURI() string

func (MongoDB) GetUsername

func (r MongoDB) GetUsername() string

type MongoDBClient

type MongoDBClient struct {
	Client *mongo.Client
}
var DB *MongoDBClient

type Redis

type Redis struct {
	Version  string
	Host     string
	Port     int
	Password string
	Database int
}

func (Redis) GetAddress

func (r Redis) GetAddress() string

func (Redis) GetDatabase

func (r Redis) GetDatabase() int

func (Redis) GetDialOptions

func (r Redis) GetDialOptions() []string

func (Redis) GetHost

func (r Redis) GetHost() string

func (Redis) GetPassword

func (r Redis) GetPassword() string

func (Redis) GetPoolOptions

func (r Redis) GetPoolOptions() []string

func (Redis) GetPoolSize

func (r Redis) GetPoolSize() int

func (Redis) GetPort

func (r Redis) GetPort() int

func (Redis) GetURI

func (r Redis) GetURI() string

Jump to

Keyboard shortcuts

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