Documentation ¶
Index ¶
- func NewAuthenticator(opts ...Option) auth.Authenticator
- func NewPluginAuthenticator(opts ...Option) auth.Authenticator
- type Option
- func AuthsOption(auths map[string]string) Option
- func FileLoaderOption(fileLoader loader.Loader) Option
- func HTTPLoaderOption(httpLoader loader.Loader) Option
- func LoggerOption(logger logger.Logger) Option
- func PluginConnOption(c *grpc.ClientConn) Option
- func RedisLoaderOption(redisLoader loader.Loader) Option
- func ReloadPeriodOption(period time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(opts ...Option) auth.Authenticator
NewAuthenticator creates an Authenticator that authenticates client by pre-defined user mapping.
func NewPluginAuthenticator ¶
func NewPluginAuthenticator(opts ...Option) auth.Authenticator
NewPluginAuthenticator creates an Authenticator that authenticates client by plugin.
Types ¶
type Option ¶
type Option func(opts *options)
func AuthsOption ¶
func FileLoaderOption ¶
func HTTPLoaderOption ¶
func LoggerOption ¶
func PluginConnOption ¶
func PluginConnOption(c *grpc.ClientConn) Option
func RedisLoaderOption ¶
func ReloadPeriodOption ¶
Click to show internal directories.
Click to hide internal directories.