server

package
v0.0.0-...-e5128e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const BUILD_QUEUE_TRESHOLD = 10
View Source
const HETZNER_SERVER_LOCATION = "nbg1" // https://api.hetzner.cloud/v1/locations
View Source
const HETZNER_SERVER_TYPE = "cpx11" // https://api.hetzner.cloud/v1/server_types
View Source
const MAX_VM_COUNT = 1

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

Types

type Server

type Server struct {
	DB                *xorm.Engine
	HetznerClient     *hcloud.Client
	HetznerSSHKeyName *string
	ExternalURI       *string
	GitStoragePath    *string
	// contains filtered or unexported fields
}

func (*Server) CheckVMStatus

func (s *Server) CheckVMStatus()

func (*Server) NewRouter

func (s *Server) NewRouter() *gin.Engine

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL