Skip to content

Commit

Permalink
stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
Clivern committed Jul 10, 2021
1 parent 4c219ba commit e931e32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,6 +1,6 @@
FROM golang:1.16.5

ARG PEANUT_VERSION=0.1.11
ARG PEANUT_VERSION=0.1.12

ENV GO111MODULE=on

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -10,10 +10,10 @@
<img src="https://github.com/Clivern/Peanut/workflows/Release/badge.svg">
</a>
<a href="https://github.com/Clivern/Peanut/releases">
<img src="https://img.shields.io/badge/Version-0.1.11-red.svg">
<img src="https://img.shields.io/badge/Version-0.1.12-red.svg">
</a>
<a href="https://goreportcard.com/report/github.com/Clivern/Peanut">
<img src="https://goreportcard.com/badge/github.com/Clivern/Peanut?v=0.1.11">
<img src="https://goreportcard.com/badge/github.com/Clivern/Peanut?v=0.1.12">
</a>
<a href="https://godoc.org/github.com/clivern/peanut">
<img src="https://godoc.org/github.com/clivern/peanut?status.svg">
Expand Down
4 changes: 4 additions & 0 deletions core/controller/service.go
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/gin-gonic/gin"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"
)

// ServicePayload type
Expand All @@ -23,6 +24,7 @@ type ServicePayload struct {
Service string `json:"service"`
Configs map[string]string `json:"configs"`
DeleteAfter string `json:"deleteAfter"`
Address string `json:"address"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
Expand Down Expand Up @@ -73,6 +75,7 @@ func GetServices(c *gin.Context) {
Service: v.Service,
Configs: v.Configs,
DeleteAfter: v.DeleteAfter,
Address: viper.GetString("app.hostname"),
CreatedAt: time.Unix(v.CreatedAt, 0),
UpdatedAt: time.Unix(v.UpdatedAt, 0),
})
Expand Down Expand Up @@ -136,6 +139,7 @@ func GetService(c *gin.Context) {
"service": serviceData.Service,
"configs": serviceData.Configs,
"deleteAfter": serviceData.DeleteAfter,
"address": viper.GetString("app.hostname"),
"createdAt": time.Unix(serviceData.CreatedAt, 0),
"updatedAt": time.Unix(serviceData.UpdatedAt, 0),
})
Expand Down

0 comments on commit e931e32

Please sign in to comment.