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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRegStatus

func CheckRegStatus(regfile string) bool

CheckRegStatus is the exported version of registration status check

func EncodePayload

func EncodePayload(proto []byte) string

EncodePayload is the exported version of the marshal'd protobuf to base64 encoder

func ExecCommand

func ExecCommand(mode string, args string) string

ExecCommand will pass each action to appropriate handler

func GenAddResult

func GenAddResult(uuid string, result string) string

GenAddResult returns the b64 of the "result add" payload

func GenAddResultRaw

func GenAddResultRaw(uuid string, result string) []byte

GenAddResultRaw returns the raw MCS bytes of the "result add" payload

func GenCheckin

func GenCheckin(regFile string, obfText string) string

GenCheckin returns the b64 of the "check in" payload

func GenCheckinRaw

func GenCheckinRaw(regFile string, obfText string) []byte

GenCheckinRaw returns the raw MCS bytes of the "check in" payload

func GenRegister

func GenRegister(interval int, delta int, regFile string, obfText string) string

GenRegister returns b64 of the registration payload

func GenRegisterRaw

func GenRegisterRaw(interval int, delta int, regFile string, obfText string) []byte

GenRegisterRaw returns raw MCS bytes of registration payload

Types

This section is empty.

Jump to

Keyboard shortcuts

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