api

package
v1.0.79 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(endpoint string, filePath string) error

func DownloadNonSSMFile

func DownloadNonSSMFile(url string, filePath string) error

func GetPublicIP

func GetPublicIP() (string, error)

func SendFile

func SendFile(endpoint string, filepath string) error

func SendGetRequest

func SendGetRequest(endpoint string, returnModel interface{}) error

func SendLogLine added in v1.0.76

func SendLogLine(source string, line string) error

SendLogLine sends a single log line update to the API

func SendPostRequest

func SendPostRequest(endpoint string, bodyModel interface{}, returnModel interface{}) error

func SendPutRequest added in v1.0.53

func SendPutRequest(endpoint string, bodyModel interface{}, returnModel interface{}) error

Types

type IP

type IP struct {
	Query string
}

type LogUpdate added in v1.0.76

type LogUpdate struct {
	Source    string `json:"source"`
	Line      string `json:"line"`
	Timestamp int64  `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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