redis

package
v0.0.0-...-bdb43d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Client *redis.Client
}

func (*Redis) Connect

func (r *Redis) Connect() *redis.Client

func (*Redis) DeleteChannel

func (r *Redis) DeleteChannel(id discord.ChannelID) error

func (*Redis) DeleteMember

func (r *Redis) DeleteMember(gId discord.GuildID, uId discord.UserID) error

func (*Redis) DeleteMessage

func (r *Redis) DeleteMessage(id discord.MessageID) error

func (*Redis) GetChannel

func (r *Redis) GetChannel(id discord.ChannelID) (*discord.Channel, error)

func (*Redis) GetMember

func (r *Redis) GetMember(gId discord.GuildID, uId discord.UserID) (*discord.Member, error)

func (*Redis) GetMessage

func (r *Redis) GetMessage(id discord.MessageID) (*discord.Message, error)

func (*Redis) SetChannel

func (r *Redis) SetChannel(c *discord.Channel) error

func (*Redis) SetMember

func (r *Redis) SetMember(id discord.GuildID, m *discord.Member) error

func (*Redis) SetMessage

func (r *Redis) SetMessage(m *discord.Message) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL