util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessId    string
	AccessKey   string
	ApiEndpoint string
)
View Source
var SumoApiEndpoints = map[string]string{
	"au":  "https://api.au.sumologic.com/api/",
	"ca":  "https://api.ca.sumologic.com/api/",
	"de":  "https://api.de.sumologic.com/api/",
	"in":  "https://api.in.sumologic.com/api/",
	"jp":  "https://api.jp.sumologic.com/api/",
	"us1": "https://api.sumologic.com/api/",
	"us2": "https://api.us2.sumologic.com/api/",
}

Sets global variables that are used across multiple packages

Functions

func GetApiCredentials

func GetApiCredentials() string

func GetApiEndpoint

func GetApiEndpoint() string

func GetHttpClient

func GetHttpClient() *http.Client

GetHttpClient: Creates a HTTP util and returns the util

func HttpError

func HttpError(statusCode int, responseBody string) bool

func LogError

func LogError(err error)

LogError: Logs any errors received

func OutputToFile

func OutputToFile(data []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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