apiclient

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

APIClient server details

func NewAPIClient

func NewAPIClient(address, token string, debug bool) (*APIClient, error)

NewAPIClient - returns a new APIClient object

func (*APIClient) ApiCall

func (c *APIClient) ApiCall(uri string, method string, data string) ([]byte, error)

ApiCall - makes an API call to the ZeroTrust API Returns the response body or an error

func (*APIClient) SetTimeout

func (c *APIClient) SetTimeout(seconds int)

SetTimeout - sets the timeout for the API call in seconds

Jump to

Keyboard shortcuts

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