Documentation
¶
Index ¶
- type Auther
- func (a *Auther) AuthinfoCheckPrivilege(p fastnntp.LoginPriv, h *fastnntp.Handler) bool
- func (a *Auther) AuthinfoDone(h *fastnntp.Handler) bool
- func (a *Auther) AuthinfoUserOny(user []byte, oldh *fastnntp.Handler) (bool, *fastnntp.Handler)
- func (a *Auther) AuthinfoUserPass(user, password []byte, oldh *fastnntp.Handler) (bool, *fastnntp.Handler)
- func (a *Auther) Backlink()
- type Backlink
- func (b *Backlink) AuthinfoCheckPrivilege(p fastnntp.LoginPriv, h *fastnntp.Handler) bool
- func (b *Backlink) AuthinfoDone(h *fastnntp.Handler) bool
- func (b *Backlink) AuthinfoUserOny(user []byte, oldh *fastnntp.Handler) (bool, *fastnntp.Handler)
- func (b *Backlink) AuthinfoUserPass(user, password []byte, oldh *fastnntp.Handler) (bool, *fastnntp.Handler)
- type DefaultDeriver
- type Deriver
- type LoginAdm
- type LoginHook
- type LoginHookLite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auther ¶
type Auther struct { Base *fastnntp.Handler Deriv Deriver Hook LoginHookLite // contains filtered or unexported fields }
func (*Auther) AuthinfoCheckPrivilege ¶
Checks a privilege. Returns true if it is allowed.
func (*Auther) AuthinfoDone ¶
This Method SHOULD return true, if authentication has already occurred.
func (*Auther) AuthinfoUserOny ¶
This Method returns true, if the combination of username is accepted without password. The method can optionally return a new Handler object in place of the old one.
type Backlink ¶
func (*Backlink) AuthinfoCheckPrivilege ¶
Checks a privilege. Returns true if it is allowed.
func (*Backlink) AuthinfoDone ¶
This Method SHOULD return true, if authentication has already occurred.
func (*Backlink) AuthinfoUserOny ¶
This Method returns true, if the combination of username is accepted without password. The method can optionally return a new Handler object in place of the old one.
type DefaultDeriver ¶
type DefaultDeriver struct{}
Implements Deriver
func (DefaultDeriver) DeriveRank ¶
func (DefaultDeriver) DeriveRankUserOpt ¶
type Deriver ¶
type Deriver interface { // This must not return nil // The results of this method will be cached. DeriveRank(h *fastnntp.Handler, r postauth.AuthRank) *fastnntp.Handler // This might return nil // This hook enables the implementor to implement its own policy // based upon the user's name rather than just the rank. // This is useful, for example, to implement accounting such as download volume, // or to implement per-newsgroup ACLs. // // Note, that the results will not be cached, please do it yourself. DeriveRankUserOpt(h *fastnntp.Handler, r postauth.AuthRank, user []byte) *fastnntp.Handler }
type LoginHook ¶
type LoginHook interface { LoginHookLite LoginAdm }
Click to show internal directories.
Click to hide internal directories.