lib

package module
v0.0.0-...-2ceb64a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_CMD   = "cmd"
	KEY_ARG   = "arg"
	KEY_STDIN = "stdin"
)
View Source
const (
	KEY_KEYS = "key"
	KEY_VALS = "val"
)
View Source
const (
	PORT    = ":8800"
	FMT_LOG = "%s => %s\n"
	CONFIG  = "config.json"
	ERRC    = 1
)
View Source
const (
	KEY_SVC = "svc"
	KEY_MSG = "msg"
)
View Source
const (
	FD_MODE = 0660
	KEY_ID  = "id"
)
View Source
const API_PORT = ":80"

Variables

View Source
var (
	SvcName = "Atlas Microservice"
	SvcVers = "0.0"
)

Functions

func ApiPing

func ApiPing(w http.ResponseWriter, r *http.Request)

func ExportDict

func ExportDict(dic Dict) ([]byte, error)

func LogError

func LogError(w io.Writer, sym string, err error)

func LogFatal

func LogFatal(w io.Writer, sym string, err error)

func LogMessage

func LogMessage(w io.Writer, msg string)

func SendDict

func SendDict(dic Dict, w io.Writer) error

func SetCors

func SetCors(w *http.ResponseWriter)

func Usage

func Usage()

Types

type Dict

type Dict map[string]string

func ImportDict

func ImportDict(buf []byte) (Dict, error)

func ReceiveDict

func ReceiveDict(r io.Reader) (Dict, error)

Jump to

Keyboard shortcuts

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