view

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenLogDB

func OpenLogDB()

Types

type Config

type Config struct {
	Mysql  MysqlClient
	Sqlite SqliteClient
	Mongo  MongoClient

	Listen string

	DBS map[string]*DBConnect
}

func InitConfig

func InitConfig(path string) *Config

func (*Config) Init

func (c *Config) Init()

type DBConnect added in v1.0.1

type DBConnect struct {
	DBName string
	Script string
	Conn   interface{}
}

type MongoClient added in v1.0.1

type MongoClient struct {
	Uri    string
	DBName string
}

type MysqlClient

type MysqlClient struct {
	DBName   string
	Username string
	Password string
	Address  string
}

type SqliteClient

type SqliteClient struct {
	Link   string
	DBName string
}

Jump to

Keyboard shortcuts

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