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: 0

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