in-progress golint warning fixes (#1799)
Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"github.com/fission/fission/pkg/fission-cli/flag"
|
||||
)
|
||||
|
||||
//Commands returns canary config commands
|
||||
func Commands() *cobra.Command {
|
||||
createCmd := &cobra.Command{
|
||||
Use: "create",
|
||||
|
||||
@@ -23,6 +23,7 @@ import (
|
||||
"github.com/fission/fission/pkg/fission-cli/flag"
|
||||
)
|
||||
|
||||
//Commands returns support commands
|
||||
func Commands() *cobra.Command {
|
||||
dumpCmd := &cobra.Command{
|
||||
Use: "dump",
|
||||
|
||||
@@ -12,16 +12,19 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
// Analytics struct
|
||||
Analytics struct {
|
||||
id string
|
||||
url string
|
||||
}
|
||||
// AnalyticsData struct
|
||||
AnalyticsData struct {
|
||||
ID string `json:"ID"`
|
||||
FunctionCallCount uint64 `json:"FunctionCallCount"`
|
||||
}
|
||||
)
|
||||
|
||||
// MakeAnalytics returns Analytics if url is not empty
|
||||
func MakeAnalytics(url string) *Analytics {
|
||||
|
||||
if len(url) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user