dirinfo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelMap added in v0.2.2

type ChannelMap map[string]semver.Version

type Enrollment

type Enrollment struct {
	Fronting RoleInfo `json:"fronting"`
	Entropic RoleInfo `json:"entropic"`
	Backing  RoleInfo `json:"backing"`
}

func (*Enrollment) Restrict

func (t *Enrollment) Restrict(keys map[string][]string)

func (*Enrollment) Role

func (t *Enrollment) Role(role string) (ri *RoleInfo)

type RoleInfo

type RoleInfo struct {
	sync.Mutex `json:"-"`

	Count      int  `json:"count"`
	Restricted bool `json:"restricted"`
}

func (*RoleInfo) Decr

func (ri *RoleInfo) Decr()

func (*RoleInfo) Incr

func (ri *RoleInfo) Incr()

type T

type T struct {
	PublicKey  jsonb.PK     `json:"public_key"`
	Version    string       `json:"version"`
	Endpoint   *texturl.URL `json:"endpoint"`
	Info       *texturl.URL `json:"info,omitempty"`
	Enrollment Enrollment   `json:"enrollment"`
	// NOTE: update_channels is deprecated
	Channels        ChannelMap      `json:"update_channels,omitempty"`
	UpgradeChannels UpgradeChannels `json:"upgrade_channels,omitempty"`
}

type UpgradeChannels added in v0.2.2

type UpgradeChannels struct {
	Relay  ChannelMap `json:"relay,omitempty"`
	Client ChannelMap `json:"client,omitempty"`
}

Jump to

Keyboard shortcuts

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