mirror of
https://github.com/bytedream/docker4ssh.git
synced 2025-05-09 12:15:11 +02:00
16 lines
294 B
Go
16 lines
294 B
Go
package api
|
|
|
|
import (
|
|
"docker4ssh/ssh"
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
type pingGetResponse struct {
|
|
Received int64 `json:"received"`
|
|
}
|
|
|
|
func PingGet(w http.ResponseWriter, r *http.Request, user *ssh.User) (interface{}, int) {
|
|
return pingGetResponse{Received: time.Now().UnixNano()}, http.StatusOK
|
|
}
|