aliases

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	// contains filtered or unexported fields
}

func MustNewAlias

func MustNewAlias(s string) Alias

func NewAlias

func NewAlias(s string) (Alias, error)

func (Alias) IsZero

func (a Alias) IsZero() bool

func (Alias) String

func (a Alias) String() string

type AliasEndpointURL

type AliasEndpointURL struct {
	// contains filtered or unexported fields
}

AliasEndpointURL should be a valid URL which can be used to get information about this alias using HTTP requests. The URL can be similar to either: - https://somealias.example.com - https://example.com/alias/somealias

func MustNewAliasEndpointURL

func MustNewAliasEndpointURL(s string) AliasEndpointURL

func NewAliasEndpointURL

func NewAliasEndpointURL(s string) (AliasEndpointURL, error)

func (AliasEndpointURL) String

func (a AliasEndpointURL) String() string

type RegistrationMessage

type RegistrationMessage struct {
	// contains filtered or unexported fields
}

func NewRegistrationMessage

func NewRegistrationMessage(alias Alias, user refs.Identity, room refs.Identity) (RegistrationMessage, error)

func (RegistrationMessage) IsZero

func (r RegistrationMessage) IsZero() bool

func (RegistrationMessage) String

func (r RegistrationMessage) String() string

type RegistrationSignature

type RegistrationSignature struct {
	// contains filtered or unexported fields
}

func NewRegistrationSignature

func NewRegistrationSignature(msg RegistrationMessage, private identity.Private) (RegistrationSignature, error)

func (RegistrationSignature) Bytes

func (s RegistrationSignature) Bytes() []byte

func (RegistrationSignature) IsZero

func (s RegistrationSignature) IsZero() bool

Jump to

Keyboard shortcuts

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