redisdb

package module
v0.0.0-...-bcce13f Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

README

redis-lib

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func DAO

func DAO() *client

func Init

func Init(cfg *Config, removeCert bool) error

func Subscribe

func Subscribe(handler Handler) error

Types

type Config

type Config struct {
	Address  string `json:"address"  required:"true"`
	Password string `json:"password" required:"true"`
	DB       int    `json:"db"`
	Timeout  int64  `json:"timeout"`
	DBCert   string `json:"db_cert"`
}

func (*Config) SetDefault

func (cfg *Config) SetDefault()

type Handler

type Handler func(string) error

Jump to

Keyboard shortcuts

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