1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

introduce iris.NewGuide()

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-06-05 22:12:57 +03:00
parent d8af2a1e14
commit 288a67bc58
7 changed files with 597 additions and 13 deletions

View File

@@ -613,9 +613,10 @@ type (
// app.Configure(iris.WithConfiguration(conf)) OR
// app.Run/Listen(..., iris.WithConfiguration(conf)).
type Configuration struct {
// vhost is private and set only with .Run/Listen methods, it cannot be changed after the first set.
// VHost lets you customize the trusted domain this server should run on.
// Its value will be used as the return value of Context.Domain() too.
// It can be retrieved by the context if needed (i.e router for subdomains)
vhost string
VHost string `ini:"v_host" json:"vHost" yaml:"VHost" toml:"VHost" env:"V_HOST"`
// LogLevel is the log level the application should use to output messages.
// Logger, by default, is mostly used on Build state but it is also possible
@@ -941,7 +942,7 @@ var _ context.ConfigurationReadOnly = (*Configuration)(nil)
// GetVHost returns the non-exported vhost config field.
func (c *Configuration) GetVHost() string {
return c.vhost
return c.VHost
}
// GetLogLevel returns the LogLevel field.