redis

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IAM

func IAM() *client

func InitIAM

func InitIAM(ctx context.Context, cfg Config) error

func InitOP added in v0.2.5

func InitOP(ctx context.Context, cfg Config) error

func InitSys

func InitSys(ctx context.Context, cfg Config) error

func OP added in v0.2.5

func OP() *client

func StopIAM

func StopIAM()

func StopOP added in v0.2.5

func StopOP()

func StopSys

func StopSys()

func Sys

func Sys() *client

Types

type Config

type Config struct {
	Host       string `json:"host" mapstructure:"host"`
	Port       string `json:"port" mapstructure:"port"`
	Username   string `json:"username" mapstructure:"username"`
	Password   string `json:"password" mapstructure:"password"`
	Channel    string `json:"channel" mapstructure:"channel"`
	Standalone bool   `json:"standalone" mapstructure:"standalone"`
	MasterName string `json:"master_name" mapstructure:"master_name"`
}

type HashItem

type HashItem struct {
	K string
	V string
}

type SubscribeHandle

type SubscribeHandle func(ctx context.Context, msg *redis.Message) error

Jump to

Keyboard shortcuts

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