nut06

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 nut06 contains structs as defined in NUT-06

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MethodSetting

type MethodSetting struct {
	Method    string `json:"method"`
	Unit      string `json:"unit"`
	MinAmount uint64 `json:"min_amount,omitempty"`
	MaxAmount uint64 `json:"max_amount,omitempty"`
}

type MintInfo

type MintInfo struct {
	Name            string     `json:"name"`
	Pubkey          string     `json:"pubkey"`
	Version         string     `json:"version"`
	Description     string     `json:"description"`
	LongDescription string     `json:"description_long,omitempty"`
	Contact         [][]string `json:"contact,omitempty"`
	Motd            string     `json:"motd,omitempty"`
	Nuts            NutsMap    `json:"nuts"`
}

type NutSetting

type NutSetting struct {
	Methods  []MethodSetting `json:"methods"`
	Disabled bool            `json:"disabled"`
}

type NutsMap

type NutsMap map[int]any

func (NutsMap) MarshalJSON

func (nm NutsMap) MarshalJSON() ([]byte, error)

Custom marshaller to display supported nuts in order

Jump to

Keyboard shortcuts

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