|
1 | 1 | package models |
2 | 2 |
|
3 | | -/* app parameters */ |
4 | | -type App struct { |
5 | | - Name string `yaml:"name"` |
6 | | - Version string `yaml:"version"` |
7 | | - Environment string `yaml:"environment"` |
8 | | -} |
9 | | - |
10 | | -/* server deployment parameters */ |
11 | | -type Server struct { |
12 | | - Host string `yaml:"host"` |
13 | | - Port int `yaml:"port"` |
14 | | -} |
15 | | - |
16 | | -/* database parameters */ |
17 | | -type Database struct { |
18 | | - TransactionLogRedis TransactionLogRedis `yaml:"transaction_log_redis"` |
19 | | -} |
20 | | - |
21 | | -/* transaction log redis parameters */ |
22 | | -type TransactionLogRedis struct { |
23 | | - Address string `yaml:"address"` |
24 | | - Password string `yaml:"password"` |
25 | | - DB string `yaml:"db"` |
26 | | -} |
27 | | - |
28 | | -/* logging parameters */ |
29 | | -type Logging struct { |
30 | | - File string `yaml:"file"` |
31 | | - MaxSize int `yaml:"max_size"` |
32 | | - MaxBackups int `yaml:"max_backups"` |
33 | | - MaxAge int `yaml:"max_age"` |
34 | | - Compress bool `yaml:"compress"` |
35 | | -} |
36 | | - |
37 | | -/* file system server parameters */ |
38 | | -type FileSystemServers struct { |
39 | | - Remote *Remote `yaml:"remote,omitempty"` |
40 | | - Path string `yaml:"path"` |
41 | | - Method string `yaml:"method"` |
42 | | -} |
43 | | - |
44 | | -/* remote parameters for file system server with laclm daemons installed */ |
45 | | -type Remote struct { |
46 | | - Host string `yaml:"host"` |
47 | | - Port int `yaml:"port"` |
48 | | -} |
49 | | - |
50 | | -/* backend security configs */ |
51 | | -type BackendSecurity struct { |
52 | | - JWTExpiry int `yaml:"jwt_expiry"` |
53 | | -} |
54 | | - |
55 | | -/* complete yaml config for global usage */ |
56 | | -type Config struct { |
57 | | - AppInfo App `yaml:"app"` |
58 | | - Server Server `yaml:"server"` |
59 | | - Database Database `yaml:"database"` |
60 | | - Logging Logging `yaml:"logging"` |
61 | | - FileSystemServers []FileSystemServers `yaml:"filesystem_servers"` |
62 | | - BackendSecurity BackendSecurity `yaml:"backend_security"` |
63 | | -} |
64 | | - |
65 | | -/* complete environment variables configs for global usage */ |
66 | | -type EnvConfig struct { |
67 | | - JWTSecret string |
68 | | -} |
69 | 3 |
|
70 | 4 | /* health response */ |
71 | 5 | type HealthResponse struct { |
|
0 commit comments