Skip to content

Commit

Permalink
Fix formatting script
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Nov 16, 2020
1 parent 13a2ad0 commit b3f71da
Show file tree
Hide file tree
Showing 38 changed files with 16 additions and 38 deletions.
1 change: 0 additions & 1 deletion api/graylog.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package api

import (
Expand Down
1 change: 0 additions & 1 deletion api/graylog/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package graylog

import (
Expand Down
1 change: 0 additions & 1 deletion api/graylog/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package graylog

import "github.com/Graylog2/collector-sidecar/assignments"
Expand Down
1 change: 0 additions & 1 deletion api/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package rest

import (
Expand Down
1 change: 0 additions & 1 deletion assignments/assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package assignments

import (
Expand Down
1 change: 0 additions & 1 deletion backends/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package backends

import (
Expand Down
1 change: 0 additions & 1 deletion backends/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package backends

import (
Expand Down
1 change: 0 additions & 1 deletion backends/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package backends

import (
Expand Down
1 change: 0 additions & 1 deletion backends/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package backends

import (
Expand Down
1 change: 0 additions & 1 deletion benchmarks/bench-rest-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


// This runs heartbeat and configuration requests against the server API
//
// Useful for profiling/benchmarking the sidecar <-> server communication without running an actual sidecar process.
Expand Down
1 change: 0 additions & 1 deletion cfgfile/cfgfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package cfgfile

import (
Expand Down
1 change: 0 additions & 1 deletion cfgfile/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package cfgfile

type SidecarConfig struct {
Expand Down
16 changes: 15 additions & 1 deletion common/exec_helper_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Copyright (C) 2020 Graylog, Inc.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the Server Side Public License, version 1,
// as published by MongoDB, Inc.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Server Side Public License for more details.
//
// You should have received a copy of the Server Side Public License
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.

// Copyright 2009 The Go Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -26,7 +41,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


// extracted from github.com/golang/go/blob/master/src/os/exec_windows.go

package common
Expand Down
1 change: 0 additions & 1 deletion common/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

import "time"
Expand Down
1 change: 0 additions & 1 deletion common/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

import (
Expand Down
1 change: 0 additions & 1 deletion common/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

import (
Expand Down
1 change: 0 additions & 1 deletion common/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

import (
Expand Down
1 change: 0 additions & 1 deletion common/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

var (
Expand Down
1 change: 0 additions & 1 deletion common/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

func LinuxPlatformFamily() string {
Expand Down
1 change: 0 additions & 1 deletion common/sigar.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


// +build !freebsd,!darwin

package common
Expand Down
1 change: 0 additions & 1 deletion common/sigar_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

func GetCpuIdle() float64 {
Expand Down
1 change: 0 additions & 1 deletion common/sigar_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package common

func GetCpuIdle() float64 {
Expand Down
1 change: 0 additions & 1 deletion context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package context

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/action_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/exec_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
1 change: 0 additions & 1 deletion daemon/svc_runner_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package daemon

import (
Expand Down
2 changes: 1 addition & 1 deletion format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ w

for file in $(find "$root" -name '*.go' | fgrep -v vendor/); do
$gofmt -w -l "$file" && \
grep -q 'under the terms of the GNU General Public License' $file || \
grep -q 'under the terms of the Server Side Public License' $file || \
add_license "$file"
done

Expand Down
1 change: 0 additions & 1 deletion logger/hooks/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package hooks

import (
Expand Down
1 change: 0 additions & 1 deletion logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package logger

import (
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package main

import (
Expand Down
1 change: 0 additions & 1 deletion services/control_handler_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


// +build darwin linux solaris freebsd

package services
Expand Down
1 change: 0 additions & 1 deletion services/control_handler_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package services

import (
Expand Down
1 change: 0 additions & 1 deletion services/periodicals.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package services

import (
Expand Down
1 change: 0 additions & 1 deletion system/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package system

import (
Expand Down
1 change: 0 additions & 1 deletion system/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// along with this program. If not, see
// <http://www.mongodb.com/licensing/server-side-public-license>.


package system

var (
Expand Down

0 comments on commit b3f71da

Please sign in to comment.