Documentation
¶
Index ¶
- Variables
- func Config(initFns ...InitFn) config
- func HTTPSignature(initFns ...InitFn) httpSigVerifier
- func LoadRemoteKey(_ context.Context, c ActivityPubClient, iri vocab.IRI) (vocab.Actor, *vocab.PublicKey, error)
- func OAuth2(initFns ...InitFn) oauthVerifier
- func Verifier(initFns ...InitFn) actorResolver
- type ActivityPubClient
- type InitFn
Constants ¶
This section is empty.
Variables ¶
View Source
var AnonymousActor = vocab.Actor{ ID: vocab.PublicNS, Type: vocab.ActorType, Name: vocab.DefaultNaturalLanguage("Anonymous"), }
Functions ¶
func HTTPSignature ¶
func HTTPSignature(initFns ...InitFn) httpSigVerifier
HTTPSignature returns an HTTP-Signature validator for loading f
Types ¶
type ActivityPubClient ¶
type InitFn ¶
type InitFn = func(*config)
func WithClient ¶
func WithClient(cl ActivityPubClient) InitFn
func WithLogger ¶
func WithNonceChecker ¶
func WithNonceChecker(nc httpsig.NonceChecker) InitFn
func WithStorage ¶
func WithStorage(s oauthStore) InitFn
Click to show internal directories.
Click to hide internal directories.