22 lines
835 B
Go
22 lines
835 B
Go
package engine
|
|
|
|
import (
|
|
config "github.com/deranjer/gvc/server/serverconfig"
|
|
"github.com/labstack/echo"
|
|
)
|
|
|
|
// GVCServer contains all the information needed for our server so we can pass it around as needed
|
|
type GVCServer struct {
|
|
Config config.GvcServerConfig //contains our full server config
|
|
Echo *echo.Echo // Contains our web server instance
|
|
}
|
|
|
|
// RepoInfoRequest is for when a client requests info about a repo
|
|
type RepoInfoRequest struct {
|
|
Version string
|
|
Port int // The port that the server will listed on
|
|
BindIP string // What IP to bind the server to. If empty will bind to all interfaces
|
|
RawPort int // The optional TCP port that the server will send raw files over
|
|
Repo config.RepoConfig //IMPORTANT: We need to blank out the client keys when sending
|
|
}
|