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 ¶ 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
GetKeyPair function returns a user's private and public keys
func GetPrivateKey ¶ added in v1.17.4
GetPrivateKey function returns a user's private key
func GetPublicKey ¶ added in v1.17.4
GetPublicKey function returns a user's public key
Types ¶
Click to show internal directories.
Click to hide internal directories.