Versions in this module Expand all Collapse all v0 v0.2.1 Nov 22, 2023 Changes in this version type Config + NoWelcomeMessage func() bool + WelcomeMessage func() string type FileDesc + Extension string v0.2.0 Aug 18, 2023 Changes in this version type Config + ForwardAuthURL func() string v0.1.0 Jun 26, 2023 Changes in this version type Config + ReverseProxy func() bool v0.0.9 May 2, 2023 v0.0.8 Jan 6, 2022 Changes in this version + type API interface + Stats func(http.ResponseWriter, StatsSummary) + type Collection interface + AddNewGames func([]FileDesc) + CountGames func() int + Filter func(string) GameType + Games func() GameType + GetKey func(string) (string, error) + HasGameIDInLibrary func(string) bool + IsBaseGame func(string) bool + Library func() map[string]TitleDBEntry + Load func() + OnConfigUpdate func(Config) + RemoveGame func(string) + ResetGamesCollection func() type Config + AddBeforeHook func(f func(Config)) + AddHook func(f func(Config)) + LoadConfig func() + type ConfigSources struct + Directories []string + Nfs []string + type Shop struct + API API + Collection Collection + Config Config + Sources Sources + Stats Stats type Sources + BeforeConfigUpdate func(Config) + DownloadGame func(string, http.ResponseWriter, *http.Request) + GetFiles func() []FileDesc + HasGame func(string) bool + OnConfigUpdate func(Config) + type Stats interface + Close func() error + DownloadAsked func(string, string) error + ListVisit func(*Switch) error + Load func() + Summary func() (StatsSummary, error) + type StatsSummary struct + DownloadAsked uint64 + DownloadDetails map[string]interface{} + UniqueSwitch uint64 + Visit uint64 + VisitPerSwitch map[string]interface{} + type Switch struct + IP string + Language string + Theme string + UID string + Version string type TitleDBEntry + Developer string + FrontBoxArt string + Screenshots []string v0.0.7 Dec 28, 2021 Changes in this version type Config + DebugTicket func() bool + VerifyNSP func() bool + type NInt int + func (n *NInt) UnmarshalJSON(b []byte) (err error) + type NString string + func (n *NString) UnmarshalJSON(b []byte) (err error) + type Source interface + Download func(http.ResponseWriter, *http.Request, string, string) + GetFiles func() []FileDesc + Load func([]string, bool) + Reset func() + UnWatchAll func() v0.0.6 Dec 23, 2021 Changes in this version + type TitleDBEntry struct + BannerURL string + Category []string + Description string + ID string + IconURL string + Intro string + IsDemo bool + Key string + Languages []string + Name string + NsuID uint64 + NumberOfPlayers int + Publisher string + Rank int + Rating int + RatingContent []string + Region string + Regions []string + ReleaseDate int + RightsID string + Size int + Version uint v0.0.5 Dec 22, 2021 Changes in this version + type Config interface + BannedTheme func() []string + CustomDB func() map[string]CustomDBEntry + DebugNfs func() bool + DebugNoSecurity func() bool + Directories func() []string + Host func() string + IsBannedTheme func(string) bool + IsBlacklisted func(string) bool + IsWhitelisted func(string) bool + NfsShares func() []string + Port func() int + Protocol func() string + RootShop func() string + SetRootShop func(string) + SetShopTemplateData func(ShopTemplate) + ShopTemplateData func() ShopTemplate + ShopTitle func() string + Sources func() Sources + type CustomDBEntry struct + Description string + ID string + IconURL string + Name string + Region string + ReleaseDate int + Size int + type FileDesc struct + GameID string + GameInfo string + HostType HostType + Path string + Size int64 + type GameFileType struct + Size int64 + URL string + type GameID interface + Extension func() string + FullID func() string + ShortID func() string + type GameType struct + Files []GameFileType + Success string + ThemeBlackList []string + Titledb map[string]interface{} + type HostType string + const LocalFile + const NFSShare + type ShopTemplate struct + ShopTitle string + type Sources struct + Directories []string + Nfs []string + type WatcherDirectory struct + Watcher *fsnotify.Watcher