relayentry

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	Role     string       `json:"role,omitempty"`
	Addr     *texturl.URL `json:"address,omitempty"`
	Pubkey   jsonb.PK     `json:"pubkey,omitempty"`
	Versions Versions     `json:"versions,omitempty"`
	Key      string       `json:"key,omitempty"`
	// Update channel for the relay, used in determining the update version to
	// Upgrade channel for the relay, used in determining the upgrade version to
	// push from the directory. Can be empty, in which case it's taken to be
	// default. (DEPRECATED)
	Channel string `json:"update_channel,omitempty"`
	// Upgrade channel for the relay, used in determining the upgrade version to
	// push from the directory. Can be empty, in which case it's taken to be
	// "default".
	UpgradeChannel string `json:"upgrade_channel,omitempty"`
}

func (*T) String

func (r *T) String() string

func (*T) Validate

func (r *T) Validate() error

type Versions added in v0.2.2

type Versions struct {
	Software      *semver.Version `json:"software,omitempty"`
	ClientRelay   *semver.Version `json:"client-relay,omitempty"`
	RelayRelay    *semver.Version `json:"relay-relay,omitempty"`
	RelayDir      *semver.Version `json:"relay-dir,omitempty"`
	RelayContract *semver.Version `json:"relay-contract,omitempty"`
}

Jump to

Keyboard shortcuts

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