Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
func NewDBAuthenticator ¶
func NewDBAuthenticator(config *conf.GlobalConfig, db *sql.DB) (Authenticator, error)
func NewMixedAuthenticator ¶
func NewMixedAuthenticator(config *conf.GlobalConfig, db *sql.DB) (Authenticator, error)
type ConfigUserAuthenticator ¶
type ConfigUserAuthenticator struct { Config *conf.GlobalConfig Authenticator }
func (*ConfigUserAuthenticator) CheckHash ¶
func (a *ConfigUserAuthenticator) CheckHash(hash string) bool
func (*ConfigUserAuthenticator) Close ¶
func (a *ConfigUserAuthenticator) Close() error
type DBAuthenticator ¶
type DBAuthenticator struct { Authenticator // contains filtered or unexported fields }
func (*DBAuthenticator) CheckHash ¶
func (a *DBAuthenticator) CheckHash(hash string) bool
func (*DBAuthenticator) Close ¶
func (a *DBAuthenticator) Close() error
type DBTrafficMeter ¶
type DBTrafficMeter struct { TrafficMeter // contains filtered or unexported fields }
func (*DBTrafficMeter) Close ¶
func (c *DBTrafficMeter) Close() error
type EmptyAuthenticator ¶
type EmptyAuthenticator struct {
Authenticator
}
func (*EmptyAuthenticator) CheckHash ¶
func (a *EmptyAuthenticator) CheckHash(hash string) bool
func (*EmptyAuthenticator) Close ¶
func (a *EmptyAuthenticator) Close() error
type EmptyTrafficMeter ¶
type EmptyTrafficMeter struct {
TrafficMeter
}
func (*EmptyTrafficMeter) Close ¶
func (t *EmptyTrafficMeter) Close() error
type MixedAuthenticator ¶
type MixedAuthenticator struct { Authenticator // contains filtered or unexported fields }
func (*MixedAuthenticator) CheckHash ¶
func (a *MixedAuthenticator) CheckHash(hash string) bool
func (*MixedAuthenticator) Close ¶
func (a *MixedAuthenticator) Close() error
type TrafficMeter ¶
func NewDBTrafficMeter ¶
func NewDBTrafficMeter(config *conf.GlobalConfig, db *sql.DB) (TrafficMeter, error)
Click to show internal directories.
Click to hide internal directories.