nut01

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package nut01 contains structs as defined in NUT-01

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetKeysResponse

type GetKeysResponse struct {
	Keysets []Keyset `json:"keysets"`
}

type KeysMap

type KeysMap map[uint64]string

func (KeysMap) MarshalJSON

func (km KeysMap) MarshalJSON() ([]byte, error)

Custom marshaller to display sorted keys

type Keyset

type Keyset struct {
	Id   string  `json:"id"`
	Unit string  `json:"unit"`
	Keys KeysMap `json:"keys"`
}

Jump to

Keyboard shortcuts

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