From 6e4c98e52d7da0a590b02b12d08d9adc13586e9a Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Mon, 22 Feb 2021 14:55:04 +0800 Subject: [PATCH] fix golint issues in core/prometheus (#506) --- core/prometheus/agent.go | 1 + core/prometheus/config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/core/prometheus/agent.go b/core/prometheus/agent.go index 780ca1ed..d3d67cb0 100644 --- a/core/prometheus/agent.go +++ b/core/prometheus/agent.go @@ -12,6 +12,7 @@ import ( var once sync.Once +// StartAgent starts a prometheus agent. func StartAgent(c Config) { once.Do(func() { if len(c.Host) == 0 { diff --git a/core/prometheus/config.go b/core/prometheus/config.go index 29887bbd..2ef5f996 100644 --- a/core/prometheus/config.go +++ b/core/prometheus/config.go @@ -1,5 +1,6 @@ package prometheus +// A Config is a prometheus config. type Config struct { Host string `json:",optional"` Port int `json:",default=9101"`