outbox

package
v0.0.0-...-4c68550 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

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

func NewSender

func NewSender(
	config *instance.FederationConfig,
	webfingerClient *webfinger.Client,
	resolver *remote.Resolver,
	signer *crypto.Signer,
) *Sender

func (*Sender) DoRequest

func (s *Sender) DoRequest(req *http.Request) (map[string]interface{}, error)

func (*Sender) GetSignedRequest

func (s *Sender) GetSignedRequest(fromActorIRI *url.URL, url string) (*http.Request, error)

func (*Sender) SendFollowRequest

func (s *Sender) SendFollowRequest(follow *models.Follow) error

func (*Sender) SendToUser

func (s *Sender) SendToUser(inbox *url.URL, payload []byte) error

Jump to

Keyboard shortcuts

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