client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// Peers client.
	Peers *rest.Client
	// Exports client.
	Exports *rest.Client
	// Imports client.
	Imports *rest.Client
	// Access policies client.
	AccessPolicies *rest.Client
	// contains filtered or unexported fields
}

Client for accessing the API.

func New

func New(host string, port uint16, tlsConfig *tls.Config) *Client

New returns a new client.

func (*Client) GetMetrics

func (c *Client) GetMetrics() (map[string]event.ConnectionStatusAttr, error)

Jump to

Keyboard shortcuts

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