Documentation
¶
Index ¶
- func GenerateRobotFile(cfg *config.Config, commandline *FlagFields)
- func GenerateSitemap(cfg *config.Config, commandline *FlagFields)
- func LoadStaticSitemap(cfg *config.Config, commandLine *FlagFields)
- func NewFakeScroll() sitemap.Scroll
- func UpdateSitemap(cfg *config.Config, commandLine *FlagFields) error
- type FakeScroll
- type FlagFields
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRobotFile ¶
func GenerateRobotFile(cfg *config.Config, commandline *FlagFields)
func GenerateSitemap ¶
func GenerateSitemap(cfg *config.Config, commandline *FlagFields)
func LoadStaticSitemap ¶
func LoadStaticSitemap(cfg *config.Config, commandLine *FlagFields)
func NewFakeScroll ¶
func UpdateSitemap ¶
func UpdateSitemap(cfg *config.Config, commandLine *FlagFields) error
Types ¶
type FakeScroll ¶
type FakeScroll struct {
}
FakeScroll is used to replicate elastic search
func (*FakeScroll) GetScroll ¶
func (fs *FakeScroll) GetScroll(_ context.Context, _ string, _ interface{}) error
func (*FakeScroll) StartScroll ¶
func (fs *FakeScroll) StartScroll(_ context.Context, result interface{}) error
type FlagFields ¶
type FlagFields struct {
RobotsFilePath string // path to the robots file that will be generated
RobotsFilePathReader string // path to the robots file that we are reading from
APIURL string // elastic search api url
SitemapIndex string // elastic search sitemap index
ScrollTimeout string // elastic search scroll timeout
ScrollSize int // elastic search scroll size
SitemapPath string // path to the sitemap file that will be generated
SitemapPathReader string // path to the sitemap file that we are reading from
ZebedeeURL string // zebedee url
FakeScroll bool // toggle to use or not the fake scroll implementation that replicates elastic search
}
Config represents service configuration for dp-sitemap
var CmdFlagFields *FlagFields
Click to show internal directories.
Click to hide internal directories.