activitypub

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ActivityStreamsContentType const
	ActivityStreamsContentType = `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`
)

Variables

This section is empty.

Functions

func CurrentTime added in v1.17.4

func CurrentTime() string

Gets the current time as an RFC 2616 formatted string RFC 2616 requires RFC 1123 dates but with GMT instead of UTC

func GetKeyPair added in v1.17.4

func GetKeyPair(user *user_model.User) (pub, priv string, err error)

GetKeyPair function returns a user's private and public keys

func GetPrivateKey added in v1.17.4

func GetPrivateKey(user *user_model.User) (priv string, err error)

GetPrivateKey function returns a user's private key

func GetPublicKey added in v1.17.4

func GetPublicKey(user *user_model.User) (pub string, err error)

GetPublicKey function returns a user's public key

Types

type Client added in v1.17.4

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

Client struct

func NewClient added in v1.17.4

func NewClient(user *user_model.User, pubID string) (c *Client, err error)

NewClient function

func (*Client) NewRequest added in v1.17.4

func (c *Client) NewRequest(b []byte, to string) (req *http.Request, err error)

NewRequest function

func (*Client) Post added in v1.17.4

func (c *Client) Post(b []byte, to string) (resp *http.Response, err error)

Post function

Jump to

Keyboard shortcuts

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