utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveMachineID

func GetActiveMachineID(proxyURL string) string

func GetHTBToken

func GetHTBToken() string

func GetMachineType

func GetMachineType(machine_id interface{}, proxyURL string) string

func GetUserSubscription

func GetUserSubscription(proxyURL string) string

func HtbRequest

func HtbRequest(method string, urlParam string, proxyURL string, jsonData []byte) (*http.Response, error)

func ParseJsonMessage

func ParseJsonMessage(resp *http.Response, key string) interface{}

func SearchItemIDByName added in v1.1.0

func SearchItemIDByName(item string, proxyURL string, element_type string) string

Types

type Challenge added in v1.1.0

type Challenge struct {
	ID    string `json:"id"`
	Value string `json:"value"`
}

type Machine

type Machine struct {
	ID    string `json:"id"`
	Value string `json:"value"`
}

type Root

type Root struct {
	Machines   interface{} `json:"machines"`
	Challenges interface{} `json:"challenges"`
}

Jump to

Keyboard shortcuts

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