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) DeleteActor(ctx context.Context, actorURI string) error
- func (c *Client) DeleteFediNodeInfo(ctx context.Context, domain string) error
- func (c *Client) DeleteHostMeta(ctx context.Context, domain string) error
- func (c *Client) GetAccessToken(ctx context.Context, accountID int64) (string, error)
- func (c *Client) GetActor(ctx context.Context, actorURI string) ([]byte, error)
- func (c *Client) GetFediNodeInfo(ctx context.Context, domain string) ([]byte, error)
- func (c *Client) GetHostMeta(ctx context.Context, domain string) ([]byte, 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) SetActor(ctx context.Context, actorURI string, actor []byte, expire time.Duration) error
- func (c *Client) SetFediNodeInfo(ctx context.Context, domain string, nodeinfo []byte, expire time.Duration) error
- func (c *Client) SetHostMeta(ctx context.Context, domain string, hostmeta []byte, expire time.Duration) 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) DeleteActor ¶
DeleteActor deletes fedi actor from redis.
func (*Client) DeleteFediNodeInfo ¶
DeleteFediNodeInfo deletes fedi nodeinfo from redis.
func (*Client) DeleteHostMeta ¶
DeleteHostMeta deletes fedi host meta from redis.
func (*Client) GetAccessToken ¶
func (*Client) GetFediNodeInfo ¶
GetFediNodeInfo retrieves fedi nodeinfo from redis.
func (*Client) GetHostMeta ¶
GetHostMeta retrieves fedi host meta from redis.
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) SetActor ¶
func (c *Client) SetActor(ctx context.Context, actorURI string, actor []byte, expire time.Duration) error
SetActor adds fedi actor to redis.
Click to show internal directories.
Click to hide internal directories.