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 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 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"`
}
Click to show internal directories.
Click to hide internal directories.