client

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package client provides a full Go API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtendedSimpleCmd

func ExtendedSimpleCmd(ctx context.Context, c microTypes.Client, data *types.ExtendedType) (string, error)

ExtendedSimpleCmd is a client function that sets a context timeout and sends a POST to /1.0/extended/simple using the given client. This function is expected to be called from an api endpoint handler, which gives us access to the daemon state, from which we can create a client.

func ExtendedWebsocketCmd

func ExtendedWebsocketCmd(ctx context.Context, c microTypes.Client) error

ExtendedWebsocketCmd is a client function that sets a context timeout and sends a GET to /1.0/extended/websocket using the given client. This function is expected to be called from an api endpoint handler, which gives us access to the daemon state, from which we can create a client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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