config

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBase

func GetBase(file ...string) *config.Config

Types

type Config

type Config struct {
	Version string
	Log     log.Log
	Web     struct {
		AppBindTo               string
		StaticDir               string
		ContentSecurityPolicies []string
		StaticHostWhiteList     []string
		RateLimit               int
		Session                 struct {
			Secure     bool
			AuthKey64s [][]byte
			EncrKey32s [][]byte
		}
	}
	App struct {
		FromEmail                 string
		ActivateFmtLink           string
		LoginLinkFmtLink          string
		ConfirmChangeEmailFmtLink string
	}
	Redis struct {
		RateLimit iredis.Pool
		Cache     iredis.Pool
	}
	SQL struct {
		User sqlh.ReplicaSet
		Pwd  sqlh.ReplicaSet
		Data sqlh.ReplicaSet
	}
	Email email.Client
	Store store.Client
	FCM   fcm.Client
}

func GetProcessed

func GetProcessed(c *config.Config) *Config

Jump to

Keyboard shortcuts

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