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 ¶
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 ¶
func GetKeyPair(user *user_model.User) (pub, priv string, err error)
GetKeyPair function returns a user's private and public keys
func GetPrivateKey ¶
func GetPrivateKey(user *user_model.User) (priv string, err error)
GetPrivateKey function returns a user's private key
func GetPublicKey ¶
func GetPublicKey(user *user_model.User) (pub string, err error)
GetPublicKey function returns a user's public key
Types ¶
Click to show internal directories.
Click to hide internal directories.