redis

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth is an auth controller which allows access to all connections and topics.

func New

func New(confFile string) (*Auth, error)

func (*Auth) ACL

func (a *Auth) ACL(user []byte, topic string, write bool) bool

ACL returns true if a user has access permissions to read or write on a topic. Allow always returns true.

func (*Auth) Authenticate

func (a *Auth) Authenticate(user, password []byte) bool

Authenticate returns true if a username and password are acceptable. Allow always returns true.

func (*Auth) Close

func (a *Auth) Close()

Close closes the redis instance.

func (*Auth) Open

func (a *Auth) Open() error

Jump to

Keyboard shortcuts

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