Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAddress ¶ added in v0.0.20
IPAddress is used to override huma IP address handling, it seems a []netip.Addr is automatically taken to mean it contains all IPv4 addresses, even if setting "format: "ipv6" (and even if the "ipv6" format worked we support mixing both ipv4 and ipv6 in the lists of addresses. Possibly related work: https://github.com/danielgtaylor/huma/pull/792
func (*IPAddress) UnmarshalJSON ¶ added in v0.0.20
parse strings into netip.Addr
type NodeInput ¶ added in v0.0.17
type NodeInput struct {
Name string `` /* 150-byte string literal not displayed */
Description string `json:"description" doc:"some identifying info for the node" minLength:"1" maxLength:"100" `
Addresses []IPAddress `json:"addresses,omitempty" doc:"The IPv4 and IPv6 addresses of the node"`
Maintenance *bool `json:"maintenance,omitempty" doc:"If the node should start in maintenance mode or not, defaults to maintenance mode"`
}
Click to show internal directories.
Click to hide internal directories.