Help us shape the future of Go! Take the 2026 Go Developer Survey

clisvc

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package clisvc is the output shape of the `skywire cli svc` and `skywire cli resolver` commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARRegistration

type ARRegistration struct {
	PK         string   `json:"pk"`
	Registered bool     `json:"registered"`
	Types      []string `json:"types,omitempty"`
}

ARRegistration answers whether a public key is registered with the address resolver, and for which transport types.

Registered is explicit rather than implied by an empty Types, because "not registered" and "registered for nothing" are different answers and a caller checking `.types | length` could not tell them apart.

func (ARRegistration) Human

func (a ARRegistration) Human(w io.Writer) error

Human writes the sentence the command printed.

type CA

type CA struct {
	Cert        string `json:"cert"`
	Key         string `json:"key"`
	Fingerprint string `json:"fingerprint"`
}

CA is the certificate authority `resolver ca` generated.

func (CA) Human

func (c CA) Human(w io.Writer) error

Human writes the block the command printed, including the follow-up hint — which is guidance for a person and has no place in the JSON.

Jump to

Keyboard shortcuts

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