Documentation
¶
Index ¶
- type Client
- func (c *Client) Close(_ context.Context) kv.Error
- func (c *Client) DeleteAccessToken(ctx context.Context, accountID int64) error
- func (c *Client) DeleteFediNodeInfo(ctx context.Context, domain string) error
- func (c *Client) DeleteFileStorePresignedURL(ctx context.Context, token string) kv.Error
- func (c *Client) DeleteHostMeta(ctx context.Context, domain string) error
- func (c *Client) DeleteInstanceOAuth(ctx context.Context, instanceID int64) error
- func (c *Client) GetAccessToken(ctx context.Context, accountID int64) (string, error)
- func (c *Client) GetFediNodeInfo(ctx context.Context, domain string) ([]byte, error)
- func (c *Client) GetFileStorePresignedURL(ctx context.Context, token string) (string, kv.Error)
- func (c *Client) GetHostMeta(ctx context.Context, domain string) ([]byte, error)
- func (c *Client) GetInstanceOAuth(ctx context.Context, instanceID int64) (string, string, error)
- func (*Client) ProcessError(err error) kv.Error
- func (c *Client) RedisClient() *redis.Client
- func (c *Client) SetAccessToken(ctx context.Context, accountID int64, accessToken string) error
- func (c *Client) SetFediNodeInfo(ctx context.Context, domain string, nodeinfo []byte, expire time.Duration) error
- func (c *Client) SetFileStorePresignedURL(ctx context.Context, token string, url string, expire time.Duration) kv.Error
- func (c *Client) SetHostMeta(ctx context.Context, domain string, hostmeta []byte, expire time.Duration) error
- func (c *Client) SetInstanceOAuth(ctx context.Context, instanceID int64, clientID string, clientSecret string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a redis client.
func (*Client) DeleteAccessToken ¶
func (*Client) DeleteFediNodeInfo ¶
DeleteFediNodeInfo deletes fedi nodeinfo from redis.
func (*Client) DeleteFileStorePresignedURL ¶
DeleteFileStorePresignedURL deletes a filestore presigned url token from redis.
func (*Client) DeleteHostMeta ¶
DeleteHostMeta deletes fedi host meta from redis.
func (*Client) DeleteInstanceOAuth ¶
func (*Client) GetAccessToken ¶
func (*Client) GetFediNodeInfo ¶
GetFediNodeInfo retrieves fedi nodeinfo from redis.
func (*Client) GetFileStorePresignedURL ¶
GetFileStorePresignedURL retrieves a filestore presigned url token from redis.
func (*Client) GetHostMeta ¶
GetHostMeta retrieves fedi host meta from redis.
func (*Client) GetInstanceOAuth ¶
func (*Client) ProcessError ¶
ProcessError replaces any known values with our own db.Error types.
func (*Client) RedisClient ¶
func (c *Client) RedisClient() *redis.Client
RedisClient returns the redis client.
func (*Client) SetAccessToken ¶
func (*Client) SetFediNodeInfo ¶
func (c *Client) SetFediNodeInfo(ctx context.Context, domain string, nodeinfo []byte, expire time.Duration) error
SetFediNodeInfo adds fedi nodeinfo to redis.
func (*Client) SetFileStorePresignedURL ¶
func (c *Client) SetFileStorePresignedURL(ctx context.Context, token string, url string, expire time.Duration) kv.Error
SetFileStorePresignedURL adds a filestore presigned url token to redis.
Click to show internal directories.
Click to hide internal directories.