helper

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APIRouterURL                string
	CacheUpdateInterval         *time.Duration
	EnableNewNavBar             bool
	EnableCensusTopicSubsection bool
	CensusTopicID               string
	IsPublishingMode            bool
	Languages                   []string
	ServiceAuthToken            string
}

type Helper

type Helper struct {
	Clienter  client.Clienter
	Config    Config
	CacheList cache.List
	Clients   *client.Clients
}

func Init

func Init(ctx context.Context, cfg Config) (svc *Helper, err error)

func (*Helper) GetMappedNavigationContent

func (svc *Helper) GetMappedNavigationContent(ctx context.Context, lang string) (content []model.NavigationItem, err error)

func (*Helper) RunUpdates

func (svc *Helper) RunUpdates(ctx context.Context, svcErrors chan error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL