Documentation ¶
Index ¶
- type ChannelPubSub
- type Message
- type Redis
- func (r *Redis) AddConnection(userSessionUUID string) error
- func (r *Redis) ChannelJoin(senderUUID, recipientUUID string) (*ChannelPubSub, string, error)
- func (r *Redis) ChannelLeave(senderUUID, recipientUUID string) (string, error)
- func (r *Redis) ChannelMessage(message *Message) (string, error)
- func (r *Redis) ChannelMessages(channelUUID string, offset, limit int64) ([]*Message, error)
- func (r *Redis) ChannelMessagesCount(channelUUID string) (int64, error)
- func (r *Redis) ChannelUsers(channelUUID string) ([]*User, error)
- func (r *Redis) DelConnection(userSessionUUID string) error
- func (r *Redis) UserAll() ([]*User, error)
- func (r *Redis) UserAuthorize(username, password string) (*User, error)
- func (r *Redis) UserCreate(username, password string) (*User, error)
- func (r *Redis) UserDeleteAccessKey(userUUID string)
- func (r *Redis) UserGet(userUUID string) (*User, error)
- func (r *Redis) UserIsOnline(userUUID string) bool
- func (r *Redis) UserSetOffline(userUUID string)
- func (r *Redis) UserSetOnline(userUUID string) error
- func (r *Redis) UserSignOut(userUUID string)
- func (r *Redis) UserUpdateAccessKey(userUUID string) (string, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelPubSub ¶
type ChannelPubSub struct {
// contains filtered or unexported fields
}
func (*ChannelPubSub) Channel ¶
func (channel *ChannelPubSub) Channel() <-chan *redis.Message
func (*ChannelPubSub) Close ¶
func (channel *ChannelPubSub) Close() <-chan struct{}
func (*ChannelPubSub) Closed ¶
func (channel *ChannelPubSub) Closed() <-chan struct{}
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (*Redis) AddConnection ¶
func (*Redis) ChannelJoin ¶
func (r *Redis) ChannelJoin(senderUUID, recipientUUID string) (*ChannelPubSub, string, error)
func (*Redis) ChannelLeave ¶
func (*Redis) ChannelMessages ¶
func (*Redis) ChannelMessagesCount ¶
func (*Redis) DelConnection ¶
func (*Redis) UserAuthorize ¶
func (*Redis) UserDeleteAccessKey ¶
func (*Redis) UserIsOnline ¶
func (*Redis) UserSetOffline ¶
func (*Redis) UserSetOnline ¶
func (*Redis) UserSignOut ¶
Click to show internal directories.
Click to hide internal directories.