lighthouse

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(cfg *Config)

Config is the configuration of lighthouse

Types

type Config

type Config struct {
	Title   string
	Version string
	Author  string
	Server  struct {
		Host string
		Port int64
	}
	Upstreams []string
	Cache     struct {
		Engine string
		MaxAge string
		// Config struct {
		// 	Host     string
		// 	Port     int
		// 	Db       int
		// 	Password string
		// 	Prefix   string
		// }
		Config redis.RedisConfig
	}
	Log struct {
		Transport string
		Level     string
	}
	Hosts struct {
		Enable bool
		File   string
	}
}

Config is the configuration of lighthouse

Jump to

Keyboard shortcuts

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