Discover Packages
github.com/diamondburned/gotktrix
internal
app
auth
package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Jul 4, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 23
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package auth supplies a gtk.Assistant wrapper to provide a login screen.
type Account struct {
Server string `json:"server"`
Token string `json:"token"`
UserID string `json:"user_id"`
Username string `json:"username"`
AvatarURL string `json:"avatar_url"`
}
Show creates a new authentication assistant with the default HTTP client.
ShowWithClient creates a new authentication assistant with the given HTTP
client.
OnConnect sets the handler that is called when the user chooses an account or
logs in. If this method has already been called before with a non-nil
function, it will panic.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.