apiclient

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MPL-2.0 Imports: 10 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
}

func New

func New(address string) *Client

func (*Client) ApplicationLog

func (c *Client) ApplicationLog(numberOfLogs int, startFromHead bool) (string, error)

ApplicationLog send numberOfLogs = 0 to print all logs

func (*Client) AuthRequests

func (c *Client) AuthRequests() ([]entity.AuthRequest, error)

func (*Client) KnownPeerConfig

func (c *Client) KnownPeerConfig(peerID string) (*config.KnownPeer, error)

func (*Client) KnownPeers

func (c *Client) KnownPeers() ([]entity.KnownPeersResponse, error)

func (*Client) P2pDebugInfo

func (c *Client) P2pDebugInfo() (*entity.P2pDebugInfo, error)

func (*Client) PeerInfo

func (c *Client) PeerInfo() (*entity.PeerInfo, error)

func (*Client) RemovePeer

func (c *Client) RemovePeer(peerID string) error

func (*Client) ReplyFriendRequest

func (c *Client) ReplyFriendRequest(peerID, alias string, decline bool) error

func (*Client) SendFriendRequest

func (c *Client) SendFriendRequest(peerID, alias string) error

func (*Client) UpdateMySettings

func (c *Client) UpdateMySettings(name string) error

func (*Client) UpdatePeerSettings

func (c *Client) UpdatePeerSettings(request entity.UpdatePeerSettingsRequest) error

Jump to

Keyboard shortcuts

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