Documentation ¶
Overview ¶
Package modules contains the management implementation of all different modules
Index ¶
- type ModuleFactory
- func (f *ModuleFactory) GetAllModules() []*models.Module
- func (f *ModuleFactory) GetModule(moduleName string) *models.Module
- func (f *ModuleFactory) GetModuleFromURI(uri string) *models.Module
- func (f *ModuleFactory) GetModulesFromURIs(uri ...string) (modules []*models.Module)
- func (f *ModuleFactory) IsModuleExcluded(module *models.Module, disabledURIs []string) bool
- func (f *ModuleFactory) IsModuleIncluded(module *models.Module, enabledURIs []string) bool
- func (f *ModuleFactory) RegisterModule(module *models.Module)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleFactory ¶
type ModuleFactory struct {
// contains filtered or unexported fields
}
ModuleFactory contains all registered modules and URI Schemas
func GetModuleFactory ¶
func GetModuleFactory() *ModuleFactory
GetModuleFactory returns already generated or else previously generated module factory
func (*ModuleFactory) GetAllModules ¶
func (f *ModuleFactory) GetAllModules() []*models.Module
GetAllModules returns all available modules
func (*ModuleFactory) GetModule ¶
func (f *ModuleFactory) GetModule(moduleName string) *models.Module
GetModule returns a module by it's key
func (*ModuleFactory) GetModuleFromURI ¶
func (f *ModuleFactory) GetModuleFromURI(uri string) *models.Module
GetModuleFromURI checks the registered URI schemas for a match and returns the module
func (*ModuleFactory) GetModulesFromURIs ¶
func (f *ModuleFactory) GetModulesFromURIs(uri ...string) (modules []*models.Module)
GetModulesFromURIs returns the selected modules in bulk for urls
func (*ModuleFactory) IsModuleExcluded ¶
func (f *ModuleFactory) IsModuleExcluded(module *models.Module, disabledURIs []string) bool
IsModuleExcluded checks if the passed module is in the list of disabled URIs
func (*ModuleFactory) IsModuleIncluded ¶
func (f *ModuleFactory) IsModuleIncluded(module *models.Module, enabledURIs []string) bool
IsModuleIncluded checks if the passed module is in the list of enabled URIs
func (*ModuleFactory) RegisterModule ¶
func (f *ModuleFactory) RegisterModule(module *models.Module)
RegisterModule registers a module and appends the URI schema to the known schemas
Directories ¶
Path | Synopsis |
---|---|
Package deviantart contains the implementation of the deviantart module
|
Package deviantart contains the implementation of the deviantart module |
api
Package api is the implementation of the DeviantArt API including the authentication using the Implicit Grant OAuth2
|
Package api is the implementation of the DeviantArt API including the authentication using the Implicit Grant OAuth2 |
Package ehentai contains the implementation of the e-hentai/exhentai module
|
Package ehentai contains the implementation of the e-hentai/exhentai module |
Package gdrive contains the implementation of the google drive module
|
Package gdrive contains the implementation of the google drive module |
Package giantessworld contains the implementation of the giantessworld module
|
Package giantessworld contains the implementation of the giantessworld module |
Package jinjamodoki contains the implementation of the jinjamodoki module
|
Package jinjamodoki contains the implementation of the jinjamodoki module |
Package patreon contains the implementation of the patreon module
|
Package patreon contains the implementation of the patreon module |
Package pixiv contains the implementation of the pixiv module
|
Package pixiv contains the implementation of the pixiv module |
ajax_api
Package ajaxapi handles the AJAX functionality which is not usable from neither the public or the mobile API such as the fanboxes or possibly the like functionality
|
Package ajaxapi handles the AJAX functionality which is not usable from neither the public or the mobile API such as the fanboxes or possibly the like functionality |
mobile_api
Package mobileapi handles the default API functionality reverse engineered from the mobile application since the API is not documented or intended to be used outside of the mobile application
|
Package mobileapi handles the default API functionality reverse engineered from the mobile application since the API is not documented or intended to be used outside of the mobile application |
pixiv_api
Package pixivapi offers shared functionality for the public API and the mobile API
|
Package pixivapi offers shared functionality for the public API and the mobile API |
pixiv_api/internal
Package internal contains all the internal functions for the pixiv API token retrieval and refresh process
|
Package internal contains all the internal functions for the pixiv API token retrieval and refresh process |
public_api
Package publicapi handles the default API functionality reverse engineered from the public API
|
Package publicapi handles the default API functionality reverse engineered from the public API |
Package sankakucomplex contains the implementation of the sankakucomplex module
|
Package sankakucomplex contains the implementation of the sankakucomplex module |
Package twitter contains the implementation of the twitter module
|
Package twitter contains the implementation of the twitter module |
api
Package api is the implementation of the DeviantArt API including the authentication using the Implicit Grant OAuth2
|
Package api is the implementation of the DeviantArt API including the authentication using the Implicit Grant OAuth2 |