helpers

package
v0.0.0-...-b8c4203 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion() (string, error)

func HandleResponse

func HandleResponse(message string, code string, data interface{}) []byte

func HandleResponseError

func HandleResponseError(message, code string, err error) []byte

HandleResponseError simplifies the creation and display of JSON-formatted error messages

func LoadConfig

func LoadConfig()

Types

type Config

type Config struct {
	VERSION      string
	STORJ_SECRET string
}
var (
	AppConfig Config
)

Jump to

Keyboard shortcuts

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