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 GenerateKeyPair ¶
GenerateKeyPair generates a public and private keypair for signing actions by users for activitypub purposes
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
NewRequest function
Click to show internal directories.
Click to hide internal directories.