Documentation ¶
Index ¶
Constants ¶
View Source
const (
OPTION_STORAGE = "storage"
)
Variables ¶
View Source
var (
WithStorage, GetStorage = option.New[Storage](OPTION_STORAGE)
Register, New = registerer.Pair[Storage]()
)
Functions ¶
func ParseVernemqRedisKey ¶
Types ¶
type PublishAcl ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func (*RedisStorage) CreateOrUpdateUser ¶
func (s *RedisStorage) CreateOrUpdateUser(user *User) error
func (*RedisStorage) GetLogger ¶
func (s *RedisStorage) GetLogger() logrus.FieldLogger
func (*RedisStorage) RemoveUser ¶
func (s *RedisStorage) RemoveUser(clientid, username string) error
type Storage ¶
type Storage interface { CreateOrUpdateUser(user *User) error RemoveUser(clientid, username string) error }
func NewRedisStorage ¶
type SubscribeAcl ¶
type User ¶
type User struct { MountPoint string `json:"mountpoint"` ClientID string `json:"client_id"` Username string `json:"username"` Passhash string `json:"passhash"` PublishAcls []PublishAcl `json:"publish_acl"` SubscribeAcls []SubscribeAcl `json:"subscribe_acl"` }
Click to show internal directories.
Click to hide internal directories.