Documentation ¶
Index ¶
- func RedisServerHandler(redisConnection *RedisClient, authClientes *AuthClient) func(redcon.Conn, redcon.Command)
- type AuthClient
- type RedisClient
- func (r *RedisClient) Delete(chave string) (sucesso bool)
- func (r RedisClient) GetFuncionando() bool
- func (r *RedisClient) NewRedisReader()
- func (r *RedisClient) NewRedisWrite()
- func (r RedisClient) Read(chave string) (valor string, sucesso bool)
- func (r *RedisClient) Write(chave string, valor string, expiration int) (sucesso bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedisServerHandler ¶
func RedisServerHandler(redisConnection *RedisClient, authClientes *AuthClient) func(redcon.Conn, redcon.Command)
Types ¶
type AuthClient ¶
type AuthClient struct {
// contains filtered or unexported fields
}
func GetAuthClient ¶
func GetAuthClient() *AuthClient
func (*AuthClient) VerifyClient ¶
func (a *AuthClient) VerifyClient(ip string) bool
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func NewRedisClient() *RedisClient
func (*RedisClient) Delete ¶
func (r *RedisClient) Delete(chave string) (sucesso bool)
func (RedisClient) GetFuncionando ¶
func (r RedisClient) GetFuncionando() bool
func (*RedisClient) NewRedisReader ¶
func (r *RedisClient) NewRedisReader()
func (*RedisClient) NewRedisWrite ¶
func (r *RedisClient) NewRedisWrite()
Click to show internal directories.
Click to hide internal directories.