config

package
v0.0.0-...-52e61cb Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: MIT Imports: 5 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 {
	Port    string
	Rolling bool
	Proxy   string
	Cookie  Cookie
	Headers Headers
	Store   Store
}

func ProvideConfig

func ProvideConfig() (c Config, err error)
type Cookie struct {
	Name     string
	Path     string
	Domain   string
	MaxAge   int
	Secure   bool
	HttpOnly bool
	SameSite string
}

type Headers

type Headers struct {
	ValuePrefix string
	SetPrefix   string
	DelPrefix   string
}

type Store

type Store struct {
	Redis StoreRedis
}

type StoreRedis

type StoreRedis struct {
	KeyPrefix     string
	redis.Options `mapstructure:",squash"`
}

func (*StoreRedis) Empty

func (s *StoreRedis) Empty() bool

Jump to

Keyboard shortcuts

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