Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyFediActor ¶
KeyFediActor returns the kv key which holds cached actor.
func KeyFediNodeInfo ¶
KeyFediNodeInfo returns the kv key which holds cached nodeinfo.
func KeyOauthNonce ¶
KeyOauthNonce returns the kv key which holds oauth nonce.
Types ¶
type KV ¶
type KV interface { Close(ctx context.Context) error DeleteFediActor(ctx context.Context, uri string) (err error) GetFediActor(ctx context.Context, uri string) (actor string, err error) SetFediActor(ctx context.Context, uri string, actor string, expire time.Duration) (err error) DeleteFediNodeInfo(ctx context.Context, domain string) (err error) GetFediNodeInfo(ctx context.Context, domain string) (nodeinfo string, err error) SetFediNodeInfo(ctx context.Context, domain string, nodeinfo string, expire time.Duration) (err error) DeleteOauthNonce(ctx context.Context, uid string, sid string) (err error) GetOauthNonce(ctx context.Context, uid string, sid string) (nonce string, err error) SetOauthNonce(ctx context.Context, uid string, sid string, nonce string, expire time.Duration) (err error) }
KV represents a key value store.
Click to show internal directories.
Click to hide internal directories.