package
3.0.0-rc.3+incompatible
Repository: https://github.com/drillbits/iris.git
Documentation: pkg.go.dev
# Functions
Default returns the default configuration for the Iris staton.
DefaultLogger returns the default configs for the Logger.
DefaultRedis returns the default configuration for Redis service.
DefaultRender returns default configuration for templates and rest rendering.
DefaultRest returns the default config for rest.
DefaultServer returns the default configs for the server.
DefaultSessions the default configs for Sessions.
DefaultTemplate returns the default template configs.
DefaultWebsocket returns the default config for iris-ws websocket package.
# Constants
AmberEngine is a Template's config for engine type when use this, the templates are eknkc/amber.
DefaultCookieName the secret cookie's name for sessions.
Default values for base Iris conf.
Default values for base Iris conf.
DefaultEngine is the HTMLEngine.
DefaultLoggerPrefix is the prefix (expect the [IRIS]), is empty for now.
DefaultMaxMessageSize 1024.
DefaultPingPeriod (DefaultPongTimeout * 9) / 10.
DefaultPongTimeout 60 * time.Second.
DefaultRedisAddr the redis address option, "127.0.0.1:6379".
DefaultRedisIdleTimeout the redis idle timeout option, time.Duration(5) * time.Minute.
1 year.
DefaultRedisNetwork the redis network option, "tcp".
DefaultServerHostname returns the default hostname which is 127.0.0.1.
DefaultServerPort returns the default port which is 8080.
DefaultSessionGcDuration is the default Session Manager's GCDuration , which is 2 hours.
DefaultWriteTimeout 15 * time.Second.
HTMLEngine is a Template's config for engine type when use this, the templates are html/template.
JadeEngine is a Template's config for engine type when use this, the templates are joker/jade.
MarkdownEngine is a Template's config for engine type when use this, the templates are .md files.
NoEngine is a Template's config for engine type when use this, the templates are disabled.
NoLayout to disable layout for a particular template file.
PongoEngine is a Template's config for engine type when use this, the templates are flosch/pongo2.
ServerName the response header of the 'Server' value when writes to the client.
TemplateLayoutContextKey is the name of the user values which can be used to set a template layout from a middleware and override the parent's.
# Variables
Charset character encoding.
CompressedFileSuffix is the suffix to add to the name of cached compressed file when using the .StaticFS function.
CookieExpireNever the default cookie's life for sessions, unlimited.
DefaultServerAddr the default server addr which is: 127.0.0.1:8080.
StaticCacheDuration expiration duration for INACTIVE file handlers.
TimeFormat default time format for any kind of datetime parsing.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Server used inside server for listening.
No description provided by the author
No description provided by the author
Websocket the config contains options for 'websocket' package.