Go API Documentation

github.com/TykTechnologies/tyk/checkup

No package summary is available.

Package

Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Constants

const (
	minCPU			= 2
	minFileDescriptors	= 80000
	minRecordsBufferSize	= 1000
)

Vars

var (
	log		= logger.Get().WithField("prefix", "checkup")
	defaultConfigs	= config.Config{
		Secret:		"352d20ee67be67f6340b4c0605b044b7",
		NodeSecret:	"352d20ee67be67f6340b4c0605b044b7",
		AnalyticsConfig: config.AnalyticsConfigConfig{
			PoolSize: runtime.NumCPU(),
		},
	}
)

Functions

func Run

func Run(c *config.Config) {
	allowInsecureConfigs(c)
	healthCheck(c)
	sessionLifetimeCheck(c)

	fileDescriptors()
	cpus()
	defaultSecrets(c)
	defaultAnalytics(c)
}

Cognitive complexity: 0, Cyclomatic complexity: 1

Private functions

func allowInsecureConfigs

allowInsecureConfigs (c *config.Config)

func cpus

cpus ()
References: runtime.NumCPU.

func defaultAnalytics

defaultAnalytics (c *config.Config)
References: runtime.NumCPU.

func defaultSecrets

defaultSecrets (c *config.Config)

func fileDescriptors

fileDescriptors ()
References: syscall.Getrlimit, syscall.RLIMIT_NOFILE, syscall.Rlimit.

func healthCheck

healthCheck (c *config.Config)

func sessionLifetimeCheck

sessionLifetimeCheck (c *config.Config)