34 lines
395 B
Go
34 lines
395 B
Go
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)
|