Documentation
¶
Overview ¶
See: https://gitlab.com/OpenVASP/travel-rule-protocol/-/blob/master/extensions/discoverability.md
Index ¶
Constants ¶
View Source
const ( VersionEndpoint = "/version" UptimeEndpoint = "/uptime" ExtensionsEndpoint = "/extensions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Version(ctx context.Context, address string) (*Version, error)
Uptime(ctx context.Context, address string) (Uptime, error)
Extensions(ctx context.Context, address string) (*Extensions, error)
}
Client defines the service interface for interacting with the TRP discoverability endpoints.
type Extensions ¶
type Extensions struct {
Required []string `json:"required,omitempty"`
Supported []string `json:"supported,omitempty"`
}
Extensions is returned on the extensions discoverability endpoint.
type Uptime ¶
Uptime is returned on the uptime discoverability endpoint.
func UptimeSince ¶
Get the uptime since the given start timestamp.
func (Uptime) MarshalText ¶
Marshals the uptime into a base 10 integer describing the number of seconds of the duration.
func (*Uptime) UnmarshalText ¶
Unmarshals the uptime from a base 10 integer describing the number of seconds up.
Click to show internal directories.
Click to hide internal directories.