Documentation
¶
Index ¶
Constants ¶
View Source
const ( // WebFingerEndpoint is the endpoint for WebFinger calls. WebFingerEndpoint = "/.well-known/webfinger" // HostMetaJSONEndpoint is the endpoint for getting the host-meta document. HostMetaJSONEndpoint = "/.well-known/host-meta.json" // ActivityJSONType represents a link type that points to an ActivityPub endpoint. ActivityJSONType = "application/activity+json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PubKey []byte
KID string
VerificationMethodType string
ResolutionPath string
OperationPath string
WebCASPath string
BaseURL string
VctURL string
DiscoveryDomains []string
DiscoveryVctDomains []string
DiscoveryMinimumResolvers int
ResourceRegistry *registry.Registry
}
Config defines configuration for discovery operations.
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"errMessage,omitempty"`
}
ErrorResponse to send error message in the response.
type JRD ¶ added in v0.1.2
type JRD struct {
Subject string `json:"subject,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
Links []Link `json:"links,omitempty"`
}
JRD is a JSON Resource Descriptor as defined in https://datatracker.ietf.org/doc/html/rfc6415#appendix-A and https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.
type Link ¶ added in v0.1.2
type Link struct {
Rel string `json:"rel,omitempty"`
Type string `json:"type,omitempty"`
Href string `json:"href,omitempty"`
Template string `json:"template,omitempty"`
}
Link is a link in a JRD. Note that while the host-meta and WebFinger endpoints both use this, only host-meta supports the Template field.
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
Operation defines handlers for discovery operations.
func (*Operation) GetRESTHandlers ¶
func (o *Operation) GetRESTHandlers() []common.HTTPHandler
GetRESTHandlers get all controller API handler available for this service.
type RawDoc ¶
type RawDoc struct {
Context string `json:"@context"`
ID string `json:"id"`
VerificationMethod []verificationMethod `json:"verificationMethod"`
Authentication []string `json:"authentication"`
AssertionMethod []string `json:"assertionMethod"`
CapabilityDelegation []string `json:"capabilityDelegation"`
CapabilityInvocation []string `json:"capabilityInvocation"`
}
RawDoc did document.
type WellKnownResponse ¶
type WellKnownResponse struct {
ResolutionEndpoint string `json:"resolutionEndpoint,omitempty"`
OperationEndpoint string `json:"operationEndpoint,omitempty"`
}
WellKnownResponse well known response.
Click to show internal directories.
Click to hide internal directories.