feat: switch glide to govendor. (#186)
* feat: switch glide to govendor. * fix: testing
This commit is contained in:
21
vendor/gopkg.in/appleboy/gin-status-api.v1/LICENSE
generated
vendored
Normal file
21
vendor/gopkg.in/appleboy/gin-status-api.v1/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Bo-Yi Wu
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
29
vendor/gopkg.in/appleboy/gin-status-api.v1/README.md
generated
vendored
Normal file
29
vendor/gopkg.in/appleboy/gin-status-api.v1/README.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# gin-status-api
|
||||
|
||||
Golang cpu, memory, gc, etc information api handler written in Go (Golang) for [Gin](https://github.com/gin-gonic/gin) framework
|
||||
|
||||
[](https://godoc.org/github.com/appleboy/gin-status-api) [](https://travis-ci.org/appleboy/gin-status-api) [](https://goreportcard.com/report/github.com/appleboy/gin-status-api) [](https://coveralls.io/github/appleboy/gin-status-api?branch=master)
|
||||
|
||||
## Usage
|
||||
|
||||
Downladn this package.
|
||||
|
||||
```bash
|
||||
$ go get gopkg.in/appleboy/gin-status-api.v1
|
||||
```
|
||||
|
||||
To import this package, add the following line to your code:
|
||||
|
||||
```go
|
||||
import "gopkg.in/appleboy/gin-status-api.v1"
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
Please see [example](example/server.go).
|
||||
|
||||
## Response
|
||||
|
||||
Please read [detail information](https://github.com/fukata/golang-stats-api-handler#toc3).
|
||||
|
||||

|
||||
12
vendor/gopkg.in/appleboy/gin-status-api.v1/status.go
generated
vendored
Normal file
12
vendor/gopkg.in/appleboy/gin-status-api.v1/status.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
package status
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
api "gopkg.in/fukata/golang-stats-api-handler.v1"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// StatusHandler is gin handle for get system status.
|
||||
func StatusHandler(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, api.GetStats())
|
||||
}
|
||||
Reference in New Issue
Block a user