diff --git a/pkg/models/metri.go b/pkg/models/metric.go similarity index 89% rename from pkg/models/metri.go rename to pkg/models/metric.go index daecf64..a6ff37c 100644 --- a/pkg/models/metri.go +++ b/pkg/models/metric.go @@ -2,6 +2,7 @@ package models import "github.com/labstack/gommon/log" +// Metric is the structure for metrics type Metric struct { ID int64 `xorm:"pk autoincr" json:"id" form:"id"` Kcoins int64 `xorm:"bigint(11)"` @@ -9,6 +10,7 @@ type Metric struct { CreatedUnix int64 `xorm:"created"` } +// AddMetric saves a new metric point func AddMetric() { allCommunites := []Community{} err := x.Find(&allCommunites)