api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

Client is used to access with the remote gateway

func NewClient

func NewClient(server string, authKey string) *Client

NewClient returns a new Client instance which can be used to interact with the gateway.

func (*Client) Keepalive

func (c *Client) Keepalive(node *config.Config, peers []protocol.PeerID, startedAt time.Time) (*protocol.RelayKeepaliveResponse, error)

Keepalive request the portal server to keepalive

Jump to

Keyboard shortcuts

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