config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PubSubDriverMemory pubSubDriver = "memory"
	PubSubDriverRedis  pubSubDriver = "redis"
)
View Source
const (
	StorageDriverMemory storageDriver = "memory"
	StorageDriverRedis  storageDriver = "redis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxRequests          uint16
	SessionTTL           time.Duration
	IgnoreHeaderPrefixes []string
	MaxRequestBodySize   uint32 // maximal webhook request body size (in bytes), zero means unlimited

	StorageDriver storageDriver
	PubSubDriver  pubSubDriver

	WebSockets struct {
		MaxClients  uint32        // zero means unlimited
		MaxLifetime time.Duration // zero means unlimited
	}
}

Jump to

Keyboard shortcuts

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