Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrefixStatic = "static" PrefixFile = "file" PrefixRPC = "rpc" KeyAnonymous = "anonymous" KeyPassword = "password" KeyPubKey = "pubkey" ValueUnderstandRasks = "I Understand the Risks" )
View Source
const ( RPCPassword = "Auth.Password" RPCPubKey = "Auth.PublicKey" )
Variables ¶
View Source
var ( // Callbacks should retuen this error, whatever the real reason is. ErrFailed = errors.New("Auth failed") )
Functions ¶
func Register ¶
func Register(key, prefix string, f OptionsHandler)
Types ¶
type OptionsHandler ¶
Return `ture` for exclusive options
Click to show internal directories.
Click to hide internal directories.