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