Config stores all the server-level settings. These cannot be changed at runtime. They are only used by the binary and are passed to the proper places.
| 19 | // runtime. They are only used by the binary and are passed to the proper |
| 20 | // places. |
| 21 | type Config struct { |
| 22 | BindAddr string |
| 23 | BasePath string |
| 24 | LogFormat string |
| 25 | LogDebug bool |
| 26 | AdminUser string |
| 27 | AdminPublicKey *models.PublicKey |
| 28 | } |
| 29 | |
| 30 | // FS returns the billy.Filesystem for this base path. |
| 31 | func (c Config) FS() billy.Filesystem { |
nothing calls this directly
no outgoing calls
no test coverage detected