Documentation ¶
Index ¶
- func GetOauthConfig() *oauth2.Config
- func GetWebAPIPath() string
- func GetWebUI() string
- func GetWebroot() string
- func IsFirebaseRunning() bool
- func IsRocksRunning() bool
- func IsTelegramRunning() bool
- func IsVRunning() bool
- func JWParsingKeys() jwk.Set
- func JWSigningKeys() jwk.Set
- func NewRouter() *mux.Router
- func SetFirebaseRunning(r bool)
- func SetRocksRunning(r bool)
- func SetVRunning(v bool)
- func Subrouter(prefix string) *mux.Router
- func TGSetBot(name string, id int)
- func TelegramBotID() int
- func TelegramBotName() string
- type WasabeeConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOauthConfig ¶
GetOauthConfig returns the Oauth config for Google
func IsFirebaseRunning ¶
func IsFirebaseRunning() bool
IsFirebaseRunning repors the running state of the Firebase integration
func IsRocksRunning ¶
func IsRocksRunning() bool
IsRocksRunning reports the current running state of Rocks integration
func IsTelegramRunning ¶
func IsTelegramRunning() bool
IsTelegramRunning reports if telegram is running; used for templates
func IsVRunning ¶
func IsVRunning() bool
IsVRunning reports the current running state of V integration
func JWParsingKeys ¶
JWParsingKeys returns the public keys uses to verify the JWT
func JWSigningKeys ¶
JWSigningKeys returns the private keys used to sign the JWT
func SetFirebaseRunning ¶
func SetFirebaseRunning(r bool)
SetFirebaseRunning sets the running state of the Firebase integration
func SetRocksRunning ¶
func SetRocksRunning(r bool)
SetRocksRunning sets the current running state of Rocks integration
func SetVRunning ¶
func SetVRunning(v bool)
SetVRunning sets the current running state of V integration
func TGSetBot ¶
TGSetBot sets the bot name and ID for use in templates currently there are no templates that use these values
func TelegramBotID ¶
func TelegramBotID() int
TelegramBotID returns the ID of the running telegram bot
func TelegramBotName ¶
func TelegramBotName() string
TelegramBotName returns the name of the running telegram bot
Types ¶
type WasabeeConf ¶
type WasabeeConf struct { GoogleCreds string // path to file.json GoogleProject string // project name for firebase/profile/risc DB string // db connect string WordListFile string // "eff-large-words.txt" filename FrontendPath string // path to directory continaing templates Certs string // path to director containing certs CertFile string // filename (relative to Certs) CertKey string // filename (relative to Certs) FirebaseKey string // filename (relative to Certs) JWKpriv string // filename (relative to Certs) JWKpub string // filename (relative to Certs) JKU string // URL to well-known JKU (for 3rd parties to verify our JWT) DefaultPictureURL string // URL to a default image for agents WebUIURL string // URL of WebUI GRPCPort uint16 // Port on which to send and receive gRPC messages Peers []string // hostname/ip of servers to update GRPCDomain string // domain for grpc credentials StoreRevisions bool // keep a copy of each upload RevisionsDir string // where to keep them // configuraiton for various subsystems V wv Rocks wrocks Telegram wtg HTTP whttp RISC wrisc Apple apple // contains filtered or unexported fields }
WasabeeConf is the primary config structure
func Get ¶
func Get() *WasabeeConf
Get returns the global configuration XXX it probably should not return a pointer so the callers can't overwrite the config
func LoadFile ¶
func LoadFile(filename string) (*WasabeeConf, error)
LoadFile is the primary method for loading the Wasabee config file, setting the defaults