Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Domain string AppName string AppNamespace string ClusterName string Ports []int IsSocket bool SocketPorts []int }
AppConfig encapsulates the configuration for all routes to a single back end.
type FileSystem ¶
type FileSystem interface { MkdirAll(path string, perm os.FileMode) error Create(name string) (afero.File, error) RemoveAll(path string) error }
FileSystem interface
type MockFS ¶
MockFS implements FileSystem interface
type RealFS ¶
type RealFS struct{}
RealFS implements FileSystem interface
type RouterConfig ¶
type RouterConfig struct { WorkerProcesses string `key:"workerProcesses" constraint:"^(auto|[1-9]\\d*)$"` MaxWorkerConnections string `key:"maxWorkerConnections" constraint:"^[1-9]\\d*$"` ServerNamesHashMaxSize string `key:"serverNamesHashMaxSize" constraint:"^[1-9]\\d*$"` ServerNamesHashBucketSize string `key:"serverNamesHashBucketSize" constraint:"^[1-9]\\d*$"` AppConfigs []*AppConfig ControllerDomain string LoggerDomain string }
RouterConfig is the primary type used to encapsulate all router configuration.
func NewRouterConfig ¶
func NewRouterConfig(kubeDomainSuffix string) *RouterConfig
NewRouterConfig builds new router config with default values If this error occurs "could not build the server_names_hash", either increase ServerNamesHashMaxSize to a number close to the number of servers (users * services he/she uses), or increase ServerNamesHashBucketSize (in this case, the server_name is becoming too long)
Click to show internal directories.
Click to hide internal directories.