system

package
v0.0.0-...-aa6b52a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type SystemConfig

type SystemConfig struct {
	Application struct {
		ID      string
		Version string
		Log     struct {
			Level   zap.AtomicLevel
			Outputs []string
		}
	}
	Server struct {
		Mode string
		Port string
		Host string
	}

	Crawler struct {
		UserAgent string `yaml:"user-agent"`
		Proxies   []string
	}
	Data struct {
		Mongo struct {
			MongoUrl    string `yaml:"mongo-url"`
			Database    string
			Collections struct {
				Htmlpages string `yaml:"htmlpages"`
				Feeditems string `yaml:"feeditems"`
			}
		}
		Redis struct {
			RedisUrl string `yaml:"redis-url"`
			Branches struct {
				RobotsTxt struct {
					Name string
					Ttl  int
				} `yaml:"robots-txt"`
			}
		}
		NatsIO struct {
			NatsUrl   string `yaml:"nats-url"`
			KvBuckets struct {
				RobotsTxt string `yaml:"robots-txt"`
			} `yaml:"kv-buckets"`
		}
	}
}
var Config *SystemConfig

Jump to

Keyboard shortcuts

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