ing
This commit is contained in:
commit
79424c10e4
68
.gitignore
vendored
Normal file
68
.gitignore
vendored
Normal file
|
@ -0,0 +1,68 @@
|
|||
# Created by .ignore support plugin (hsz.mobi)
|
||||
### JetBrains template
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
# User-specific stuff:
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/dictionaries
|
||||
|
||||
# Sensitive or high-churn files:
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.xml
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
|
||||
# Gradle:
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Mongo Explorer plugin:
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
## File-based project format:
|
||||
*.iws
|
||||
|
||||
## Plugin-specific files:
|
||||
|
||||
# IntelliJ
|
||||
/out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
### Go template
|
||||
# Binaries for programs and plugins
|
||||
*.exe
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
|
||||
.glide/
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
vendor/
|
||||
glide.lock
|
||||
.DS_Store
|
||||
dist/
|
||||
debug
|
32
.vscode/launch.json
vendored
Normal file
32
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"remotePath": "",
|
||||
"port": 2345,
|
||||
"host": "127.0.0.1",
|
||||
"program": "${workspaceRoot}/main.go",
|
||||
"env": {},
|
||||
"args": [],
|
||||
"showLog": true
|
||||
},
|
||||
{
|
||||
"name": "File Debug",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"remotePath": "",
|
||||
"port": 2345,
|
||||
"host": "127.0.0.1",
|
||||
"program": "${fileDirname}",
|
||||
"env": {},
|
||||
"args": [],
|
||||
"showLog": true
|
||||
}
|
||||
|
||||
]
|
||||
}
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Place your settings in this file to overwrite default and user settings.
|
||||
{
|
||||
}
|
5
auth.go
Normal file
5
auth.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package overflow_server_config
|
||||
|
||||
type Auth struct {
|
||||
SigningKey string `json:"signingKey" yaml:"signingKey" toml:"signingKey"`
|
||||
}
|
2
glide.yaml
Normal file
2
glide.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
package: git.loafle.net/overflow/overflow_server_config
|
||||
import: []
|
6
grpc.go
Normal file
6
grpc.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package overflow_server_config
|
||||
|
||||
type GRPC struct {
|
||||
Server
|
||||
Pool *Pool `json:"pool" yaml:"pool" toml:"pool"`
|
||||
}
|
10
pool.go
Normal file
10
pool.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package overflow_server_config
|
||||
|
||||
import "time"
|
||||
|
||||
type Pool struct {
|
||||
MaxCapacity int `json:"maxCapacity" yaml:"maxCapacity" toml:"maxCapacity"`
|
||||
MaxIdle int `json:"maxIdle" yaml:"maxIdle" toml:"maxIdle"`
|
||||
IdleTimeout time.Duration `json:"idleTimeout" yaml:"idleTimeout" toml:"idleTimeout"`
|
||||
Wait bool `json:"wait" yaml:"wait" toml:"wait"`
|
||||
}
|
6
redis.go
Normal file
6
redis.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package overflow_server_config
|
||||
|
||||
type Redis struct {
|
||||
Server
|
||||
Pool *Pool `json:"pool" yaml:"pool" toml:"pool"`
|
||||
}
|
12
server.go
Normal file
12
server.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package overflow_server_config
|
||||
|
||||
import "time"
|
||||
|
||||
type Server struct {
|
||||
Name string `json:"name" yaml:"name" toml:"name"`
|
||||
Network string `json:"network" yaml:"network" toml:"network"`
|
||||
Addr string `json:"addr" yaml:"addr" toml:"addr"`
|
||||
TLS bool `json:"tls" yaml:"tls" toml:"tls"`
|
||||
Concurrency int `json:"concurrency" yaml:"concurrency" toml:"concurrency"`
|
||||
MaxStopWaitTime time.Duration `json:"maxStopWaitTime" yaml:"maxStopWaitTime" toml:"maxStopWaitTime"`
|
||||
}
|
6
servlet.go
Normal file
6
servlet.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package overflow_server_config
|
||||
|
||||
type Servlet struct {
|
||||
Entry string `json:"entry" yaml:"entry" toml:"entry"`
|
||||
Socket *Socket `json:"socket" yaml:"socket" toml:"socket"`
|
||||
}
|
13
socket.go
Normal file
13
socket.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package overflow_server_config
|
||||
|
||||
import "time"
|
||||
|
||||
type Socket struct {
|
||||
MaxMessageSize int64 `json:"maxMessageSize" yaml:"maxMessageSize" toml:"maxMessageSize"`
|
||||
WriteTimeout time.Duration `json:"writeTimeout" yaml:"writeTimeout" toml:"writeTimeout"`
|
||||
ReadTimeout time.Duration `json:"readTimeout" yaml:"readTimeout" toml:"readTimeout"`
|
||||
PongTimeout time.Duration `json:"pongTimeout" yaml:"pongTimeout" toml:"pongTimeout"`
|
||||
PingTimeout time.Duration `json:"pingTimeout" yaml:"pingTimeout" toml:"pingTimeout"`
|
||||
PingPeriod time.Duration `json:"pingPeriod" yaml:"pingPeriod" toml:"pingPeriod"`
|
||||
BinaryMessage bool `json:"binaryMessage" yaml:"binaryMessage" toml:"binaryMessage"`
|
||||
}
|
10
websocket.go
Normal file
10
websocket.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package overflow_server_config
|
||||
|
||||
import "time"
|
||||
|
||||
type Websocket struct {
|
||||
HandshakeTimeout time.Duration `json:"handshakeTimeout" yaml:"handshakeTimeout" toml:"handshakeTimeout"`
|
||||
ReadBufferSize int `json:"readBufferSize" yaml:"readBufferSize" toml:"readBufferSize"`
|
||||
WriteBufferSize int `json:"writeBufferSize" yaml:"writeBufferSize" toml:"writeBufferSize"`
|
||||
EnableCompression bool `json:"enableCompression" yaml:"enableCompression" toml:"enableCompression"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user