util

package
v0.0.0-...-8acc922 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func CloseDB

func CloseDB()

func InitBinanceConfig

func InitBinanceConfig()

func InitDB

func InitDB()

func InitViperConfig

func InitViperConfig(cmd *cobra.Command)

InitViperConfig sets global viper configuration

func MD5String

func MD5String(v string) string

func Reverse

func Reverse(s string) string

func StructToString

func StructToString(args interface{}) string

Types

type Configuration

type Configuration struct {
	Symbols []string
	Dsn     string
	Serve   map[string]Serve
}

func GetConfig

func GetConfig() *Configuration

type Serve

type Serve struct {
	Interval string
	Enable   bool
}

Jump to

Keyboard shortcuts

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