mirror of
https://github.com/therootcompany/telebit.git
synced 2025-07-06 12:26:36 +00:00
- built envelope based on AJ spec, self standing package with transaction ID increment and unix time stamps - fixed servers end point - created server/{id} end point - created rest mappings for GET
24 lines
456 B
Go
24 lines
456 B
Go
package genericlistener
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
var (
|
|
loginfo *log.Logger
|
|
logdebug *log.Logger
|
|
logFlags = log.Ldate | log.Lmicroseconds | log.Lshortfile
|
|
connectionID int64
|
|
)
|
|
|
|
func init() {
|
|
loginfo = log.New(os.Stdout, "INFO: genericlistener: ", logFlags)
|
|
logdebug = log.New(os.Stdout, "DEBUG: genericlistener:", logFlags)
|
|
pc, _, _, _ := runtime.Caller(0)
|
|
loginfo.Println(runtime.FuncForPC(pc).Name())
|
|
|
|
connectionID = 0
|
|
}
|