config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LDAP  ldap.Config  `yaml:"ldap" json:"ldap"`
	Cache cache.Config `yaml:"cache" json:"cache"`
	Crawl Crawl        `yaml:"crawl" json:"crawl"`
}

Config represents the top-level configuration for the gdrive package.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a Config with sensible defaults.

type Crawl

type Crawl struct {
	// SkipFolderNames is a list of folder names to skip during crawling.
	SkipFolderNames []string `yaml:"skipFolderNames" json:"skipFolderNames"`
	// MaxRetries is the maximum number of retries for API calls.
	MaxRetries int `yaml:"maxRetries" json:"maxRetries"`
	// ConcurrentFolders is the maximum number of folders to crawl concurrently.
	ConcurrentFolders int `yaml:"concurrentFolders" json:"concurrentFolders"`
}

Crawl contains configuration for folder crawling.

func DefaultCrawl

func DefaultCrawl() Crawl

DefaultCrawl returns a Crawl config with sensible defaults.

Jump to

Keyboard shortcuts

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