redis

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 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 InitSys

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

func StopIAM

func StopIAM()

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