option

package
v1.6.42 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 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 App

type App func(app *types.App)

func WithLogger

func WithLogger(logger *types.Logger) App

func WithLoggerDir

func WithLoggerDir(dir string) App

func WithLoggerLogTimeout

func WithLoggerLogTimeout(t time.Duration) App

func WithLoggerSendTimeout

func WithLoggerSendTimeout(t time.Duration) App

func WithMode

func WithMode(mode string) App

func WithName

func WithName(name string) App

func WithServer

func WithServer(s *types.Server) App

func WithServerAddr

func WithServerAddr(addr string) App

func WithServerReadTimeout

func WithServerReadTimeout(t time.Duration) App

func WithServerShutDownTimeout

func WithServerShutDownTimeout(t time.Duration) App

func WithServerWriteTimeout

func WithServerWriteTimeout(t time.Duration) App

func WithSession

func WithSession(s *types.Session) App

func WithSessionClientFunc

func WithSessionClientFunc(fn func() *redis.Client) App

func WithSessionExpiration

func WithSessionExpiration(expiration int64) App

func WithSessionKey

func WithSessionKey(key string) App

func WithSessionKeyPrefix

func WithSessionKeyPrefix(keyPrefix string) App

func WithSign

func WithSign(s *types.Sign) App

func WithSignDev

func WithSignDev(dev string) App

func WithSignExpiration

func WithSignExpiration(expiration int64) App

func WithSignKey

func WithSignKey(key string) App

func WithSignSecretKey

func WithSignSecretKey(secretKey string) App

func WithSignTimeKey

func WithSignTimeKey(timeKey string) App

func WithVersion

func WithVersion(ver *types.Version) App

func WithVersionKey

func WithVersionKey(key string) App

func WithVersionLatest

func WithVersionLatest(latest string) App

Jump to

Keyboard shortcuts

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