Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(ctxt context.Context, s interface{})
- func Debugf(ctxt context.Context, s string, args ...interface{})
- func Error(ctxt context.Context, s interface{})
- func Errorf(ctxt context.Context, s string, args ...interface{})
- func ExecC(ctxt context.Context, name string, arg ...string) *exec.Cmd
- func Fatal(ctxt context.Context, s interface{})
- func Fatalf(ctxt context.Context, s string, args ...interface{})
- func GenId() string
- func Info(ctxt context.Context, s interface{})
- func Infof(ctxt context.Context, s string, args ...interface{})
- func LogUploadDaemon(ip, username, password, file string, interval int) error
- func MkCtxt(reqName string) context.Context
- func PanicErr(err error)
- func Prettify(v interface{}) string
- func Tsprint(s string, m map[string]string) (string, error)
- func Unpack(b []byte, m *map[string]interface{}) error
- func Warning(ctxt context.Context, s interface{})
- func Warningf(ctxt context.Context, s string, args ...interface{})
Constants ¶
View Source
const ( LoginUrl = "http://%s:7717/v2.2/login" LogUrl = "http://%s:7717/v2.2/logs_upload" LogInterval = int(time.Hour * 1) LastFile = "/var/log/datera/last" LogFiltered = "/var/log/datera/dlogs.tar.gz" )
View Source
const ( ReqName = "req" TraceId = "tid" )
Variables ¶
View Source
var (
EndLogging = make(chan bool)
)
Functions ¶
func LogUploadDaemon ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.