kickcore

package
v0.0.0-...-0464d78 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOGGING_CRITICAL = logging.LEVEL_CRITICAL
	LOGGING_ERROR    = logging.LEVEL_ERROR
	LOGGING_WARNING  = logging.LEVEL_WARNING
	LOGGING_INFO     = logging.LEVEL_INFO
	LOGGING_DEBUG    = logging.LEVEL_DEBUG

	LOGGING_WARN = logging.LEVEL_WARN
)

Logging level's

DEBUG < INFO < WARN[ING] < ERROR < CRITICAL

Variables

This section is empty.

Functions

func Version

func Version() string

Types

type ConfigCore

type ConfigCore struct {
	LoggingLevel  int
	LoggingConfig *logging.Config

	APIClientReadTimeout  time.Duration
	APIClientWriteTimeout time.Duration

	// CacheSystem    string
	DisableCaching                 bool
	CacheSQLiteTimeout             time.Duration
	CacheExpirationMachineInterval time.Duration
	CacheExtraTTLFilename          string
	CacheSQLiteDSN                 string

	ServerReadTimeout       time.Duration
	ServerWriteTimeout      time.Duration
	ReduceServerMemoryUsage bool
	ServerGetOnly           bool

	ServerLogSpeed bool
}

type Core

type Core struct {
	// contains filtered or unexported fields
}

func (*Core) Init

func (core *Core) Init(c *ConfigCore) error

func (*Core) OpenConnections

func (core *Core) OpenConnections() int32

func (*Core) Serve

func (core *Core) Serve(addr string) error

func (*Core) Shutdown

func (core *Core) Shutdown() error

func (*Core) Urls

func (core *Core) Urls() [][2]interface{}

Jump to

Keyboard shortcuts

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