api

package
v0.0.0-...-94fadf8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

func Svc

func Svc(logger *logrus.Logger, cfg string)

Types

type WebConfig

type WebConfig struct {
	Key    string `json:"key"`
	RpcUrl string `json:"rpcurl"`
	User   string `json:"user"`
	Pass   string `json:"pass"`
	Host   string `json:"host"`
	Port   int    `json:"port"`
	DBName string `json:"dbname"`
}

func GetConfig

func GetConfig(cfg string) (db *sqlx.DB, r WebConfig, err error)

Jump to

Keyboard shortcuts

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