Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
SSHServer *sshsrv.SSHServer
GitDaemon *daemon.GitDaemon
HTTPServer *web.HTTPServer
StatsServer *stats.StatsServer
Cron *cron.Scheduler
Config *config.Config
Backend *backend.Backend
DB *db.DB
// contains filtered or unexported fields
}
Server is the Soft Serve server.
func NewServer ¶
NewServer returns a new *Server configured to serve Soft Serve. The SSH server key-pair will be created if none exists. It expects a context with *backend.Backend, *db.DB, *log.Logger, and *config.Config attached.
Click to show internal directories.
Click to hide internal directories.