1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

release version 12.2.10

This commit is contained in:
Gerasimos (Makis) Maropoulos
2024-01-18 03:11:54 +02:00
parent 12546322eb
commit 113ce190e6
31 changed files with 314 additions and 208 deletions

View File

@@ -7,7 +7,6 @@ import (
"path/filepath"
"runtime"
"strings"
"sync"
"time"
"github.com/kataras/iris/v12/context"
@@ -977,25 +976,19 @@ type Configuration struct {
//
// Defaults to empty map.
Other map[string]interface{} `ini:"other" json:"other,omitempty" yaml:"Other" toml:"Other"`
mu sync.RWMutex // mutex for some of the configuration fields that may change during parallel jobs (see Application.NonBlocking & Wait).
}
var _ context.ConfigurationReadOnly = (*Configuration)(nil)
// GetVHost returns the non-exported VHost config field.
// GetVHost returns the VHost config field.
func (c *Configuration) GetVHost() string {
c.mu.RLock()
vhost := c.VHost
c.mu.RUnlock()
return vhost
}
// SetVHost sets the non-exported VHost config field.
// SetVHost sets the VHost config field.
func (c *Configuration) SetVHost(s string) {
c.mu.Lock()
c.VHost = s
c.mu.Unlock()
}
// GetLogLevel returns the LogLevel field.