package
Version:
v0.0.0-...-81fa7a2
Opens a new window with list of versions in this module.
Published: Jul 29, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Config bot configuration
Open opens config from working directory.
Remove remvoes the config.
Save saves the config to disk.
type Token struct {
Source string
ID string `json:"token"`
ExpireAt int64 `json:"expireAt"`
User user `json:"user"`
}
Token defines the token
Validate validates the token
type User struct {
Email string `json:"email"`
ID string `json:"_id"`
Name string `json:"name"`
Password string `json:"password"`
Company string `json:"company"`
Config []Config `json:"config"`
APIKey string `json:"apiKey"`
}
User Recime User
CurrentUser gets the current user for the token.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.