Server represents a gitdir server.
| 16 | |
| 17 | // Server represents a gitdir server. |
| 18 | type Server struct { |
| 19 | lock *sync.RWMutex |
| 20 | |
| 21 | Addr string |
| 22 | |
| 23 | // Internal state |
| 24 | log zerolog.Logger |
| 25 | fs billy.Filesystem |
| 26 | config *Config |
| 27 | ssh *ssh.Server |
| 28 | } |
| 29 | |
| 30 | // NewServer configures a new gitdir server and attempts to load the config |
| 31 | // from the admin repo. |
nothing calls this directly
no outgoing calls
no test coverage detected