master
Evan Chen 2021-11-16 18:50:52 +08:00
parent 37eafbe7d8
commit 12084a659c
3 changed files with 34 additions and 0 deletions

33
gterm.go Normal file
View File

@ -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 := &GTerm{}
ksrv.New()
return g
}
func (g *GTerm) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
func (g *GTerm) BaseEndpoint(w http.ResponseWriter, r *http.Request)

1
util.go Normal file
View File

@ -0,0 +1 @@
package gterm