diff --git a/main.go b/cmd/gterm/main.go similarity index 100% rename from main.go rename to cmd/gterm/main.go diff --git a/gterm.go b/gterm.go new file mode 100644 index 0000000..87128da --- /dev/null +++ b/gterm.go @@ -0,0 +1,33 @@ +package gterm + +import ( + "net/http" + + "kumoly.io/lib/klog" + "kumoly.io/lib/ksrv" +) + +var log = klog.Sub("gterm") + +type Config struct { + AllowIP string +} + +type GTerm struct { +} + +func init() { + +} + +func New() *GTerm { + g := >erm{} + ksrv.New() + return g +} + +func (g *GTerm) ServeHTTP(w http.ResponseWriter, r *http.Request) { + +} + +func (g *GTerm) BaseEndpoint(w http.ResponseWriter, r *http.Request) diff --git a/util.go b/util.go new file mode 100644 index 0000000..d990dbd --- /dev/null +++ b/util.go @@ -0,0 +1 @@ +package gterm