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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user