utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAddRes

func HandleAddRes(uuid string, result string, core string) []byte

HandleAddRes will build the correct proto for a "addResult"

func HandleCheckin

func HandleCheckin(uuid string, core string) []byte

HandleCheckin will build the correct proto for a bot checkin

func HandleReg

func HandleReg(uuid string, interval int32, delta int32, hostname string, core string) []byte

HandleReg will build the correct proto for a bot registration

func InitLogger

func InitLogger(logpath string) (*log.Logger, *log.Logger, *log.Logger)

InitLogger will take a filepath and generate logger type for info/warn/err that writes to stdout and the path

Types

This section is empty.

Jump to

Keyboard shortcuts

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