diff --git a/disc/disc.go b/disc/disc.go index cbddbe54..4c31cea1 100644 --- a/disc/disc.go +++ b/disc/disc.go @@ -1,4 +1,3 @@ -// Package discovery handles finding vFlow nodes through multicasting //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,8 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + +// Package discovery handles finding vFlow nodes through multicasting package discovery import ( diff --git a/ipfix/decoder.go b/ipfix/decoder.go index 5b6590ef..63faef47 100644 --- a/ipfix/decoder.go +++ b/ipfix/decoder.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/decoder_test.go b/ipfix/decoder_test.go index 42c3bab0..af08142d 100644 --- a/ipfix/decoder_test.go +++ b/ipfix/decoder_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/doc.go b/ipfix/doc.go new file mode 100644 index 00000000..9a9a30e9 --- /dev/null +++ b/ipfix/doc.go @@ -0,0 +1,2 @@ +// Package ipfix decodes IPFIX packets +package ipfix diff --git a/ipfix/interpret.go b/ipfix/interpret.go index 50776d9a..6570acf7 100644 --- a/ipfix/interpret.go +++ b/ipfix/interpret.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/marshal.go b/ipfix/marshal.go index 56c54e6a..49ad737e 100644 --- a/ipfix/marshal.go +++ b/ipfix/marshal.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/marshal_test.go b/ipfix/marshal_test.go index 2b3bda55..7bbc78af 100644 --- a/ipfix/marshal_test.go +++ b/ipfix/marshal_test.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/memcache.go b/ipfix/memcache.go index 6888da36..2a0f6c97 100644 --- a/ipfix/memcache.go +++ b/ipfix/memcache.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/memcache_rpc.go b/ipfix/memcache_rpc.go index b29c01f2..105addb7 100644 --- a/ipfix/memcache_rpc.go +++ b/ipfix/memcache_rpc.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/memcache_test.go b/ipfix/memcache_test.go index 5be57bbb..06dd4a57 100644 --- a/ipfix/memcache_test.go +++ b/ipfix/memcache_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix import ( diff --git a/ipfix/rfc5102_model.go b/ipfix/rfc5102_model.go index e7c1b7ae..ab721b74 100644 --- a/ipfix/rfc5102_model.go +++ b/ipfix/rfc5102_model.go @@ -1,4 +1,3 @@ -// Package ipfix decodes IPFIX packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package ipfix // FieldType is IPFIX Abstract Data Types RFC5102#section-3.1 diff --git a/mirror/doc.go b/mirror/doc.go new file mode 100644 index 00000000..35e57cf4 --- /dev/null +++ b/mirror/doc.go @@ -0,0 +1,2 @@ +// Package mirror replicates the IPFIX packets with spoofing feature to 3rd party collector +package mirror diff --git a/mirror/mirror.go b/mirror/mirror.go index 288ef276..c55c6ebc 100644 --- a/mirror/mirror.go +++ b/mirror/mirror.go @@ -20,7 +20,6 @@ //: limitations under the License. //: ---------------------------------------------------------------------------- -// Package mirror replicates the IPFIX packets with spoofing feature to 3rd party collector package mirror import ( diff --git a/mirror/mirror_test.go b/mirror/mirror_test.go index 62883d13..2fa59499 100644 --- a/mirror/mirror_test.go +++ b/mirror/mirror_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package mirror import ( diff --git a/monitor/monitor.go b/monitor/monitor.go index bf846626..058fcd01 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/monitor/store/doc.go b/monitor/store/doc.go new file mode 100644 index 00000000..8792598f --- /dev/null +++ b/monitor/store/doc.go @@ -0,0 +1,2 @@ +// Package store ingest monitoring time series data points to different back-ends +package store diff --git a/monitor/store/store.go b/monitor/store/store.go index 454537f6..b2f92adc 100644 --- a/monitor/store/store.go +++ b/monitor/store/store.go @@ -20,7 +20,6 @@ //: limitations under the License. //: ---------------------------------------------------------------------------- -// Package store ingest monitoring time series data points to different back-ends package store import ( diff --git a/netflow/v9/decoder.go b/netflow/v9/decoder.go index 3211d502..60b7e128 100644 --- a/netflow/v9/decoder.go +++ b/netflow/v9/decoder.go @@ -20,7 +20,6 @@ //: limitations under the License. //: ---------------------------------------------------------------------------- -// Package netflow9 decodes netflow version v9 packets package netflow9 import ( diff --git a/netflow/v9/doc.go b/netflow/v9/doc.go new file mode 100644 index 00000000..b974fec2 --- /dev/null +++ b/netflow/v9/doc.go @@ -0,0 +1,2 @@ +// Package netflow9 decodes netflow version v9 packets +package netflow9 diff --git a/netflow/v9/memcache.go b/netflow/v9/memcache.go index d1f3ee6e..2596ae46 100644 --- a/netflow/v9/memcache.go +++ b/netflow/v9/memcache.go @@ -20,7 +20,6 @@ //: limitations under the License. //: ---------------------------------------------------------------------------- -// Package netflow9 decodes netflow version v9 packets package netflow9 import ( diff --git a/packet/doc.go b/packet/doc.go new file mode 100644 index 00000000..6f0297b8 --- /dev/null +++ b/packet/doc.go @@ -0,0 +1,2 @@ +// Package packet decodes layer two, three and four OSI model layers +package packet diff --git a/packet/ethernet.go b/packet/ethernet.go index 8851633f..21c8572a 100644 --- a/packet/ethernet.go +++ b/packet/ethernet.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import ( diff --git a/packet/ethernet_test.go b/packet/ethernet_test.go index 7c0d6142..078b93de 100644 --- a/packet/ethernet_test.go +++ b/packet/ethernet_test.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "testing" diff --git a/packet/icmp.go b/packet/icmp.go index 01947609..43de2355 100644 --- a/packet/icmp.go +++ b/packet/icmp.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "errors" diff --git a/packet/network.go b/packet/network.go index dbe7294f..aa43c071 100644 --- a/packet/network.go +++ b/packet/network.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import ( diff --git a/packet/network_test.go b/packet/network_test.go index 0d324eea..50937614 100644 --- a/packet/network_test.go +++ b/packet/network_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "testing" diff --git a/packet/packet.go b/packet/packet.go index cf3bb197..e59e181e 100644 --- a/packet/packet.go +++ b/packet/packet.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "errors" diff --git a/packet/packet_test.go b/packet/packet_test.go index ee426b8f..337d33b9 100644 --- a/packet/packet_test.go +++ b/packet/packet_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "testing" diff --git a/packet/transport.go b/packet/transport.go index 4c104a05..626600b3 100644 --- a/packet/transport.go +++ b/packet/transport.go @@ -1,4 +1,3 @@ -// Package packet decodes layer two, three and four OSI model layers //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "errors" diff --git a/packet/transport_test.go b/packet/transport_test.go index 99f5c0db..c13efab5 100644 --- a/packet/transport_test.go +++ b/packet/transport_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package packet import "testing" diff --git a/producer/doc.go b/producer/doc.go new file mode 100644 index 00000000..8da9f154 --- /dev/null +++ b/producer/doc.go @@ -0,0 +1,2 @@ +// Package producer pushes decoded messages to message queues +package producer diff --git a/producer/kafka.go b/producer/kafka.go index 2ccecd68..b17e8a13 100644 --- a/producer/kafka.go +++ b/producer/kafka.go @@ -1,4 +1,3 @@ -// Package producer push decoded messages to messaging queue //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package producer import ( diff --git a/producer/nsq.go b/producer/nsq.go index f3ee35ad..46be7605 100644 --- a/producer/nsq.go +++ b/producer/nsq.go @@ -1,4 +1,3 @@ -// Package producer push decoded messages to messaging queue //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package producer import ( diff --git a/producer/producer.go b/producer/producer.go index 4a40aa90..7acaaeea 100644 --- a/producer/producer.go +++ b/producer/producer.go @@ -1,4 +1,3 @@ -// Package producer push decoded messages to messaging queue //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package producer import ( diff --git a/producer/producer_test.go b/producer/producer_test.go index c9ab8d7f..4ab6960f 100644 --- a/producer/producer_test.go +++ b/producer/producer_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package producer import ( diff --git a/reader/reader.go b/reader/reader.go index 7eaedfc7..00e10037 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -1,4 +1,3 @@ -// Package reader decodes a variable from buffer //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,8 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + +// Package reader decodes a variable from buffer package reader import ( diff --git a/reader/reader_test.go b/reader/reader_test.go index 42845515..e0627781 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -1,4 +1,3 @@ -// Package reader decodes a variable from buffer //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package reader import ( diff --git a/sflow/decoder.go b/sflow/decoder.go index 83c7adc1..8ee602b3 100644 --- a/sflow/decoder.go +++ b/sflow/decoder.go @@ -1,4 +1,3 @@ -// Package sflow decodes sFlow packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package sflow import ( diff --git a/sflow/decoder_test.go b/sflow/decoder_test.go index 5d99e98f..711cadb5 100644 --- a/sflow/decoder_test.go +++ b/sflow/decoder_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package sflow import ( diff --git a/sflow/doc.go b/sflow/doc.go new file mode 100644 index 00000000..27f31f57 --- /dev/null +++ b/sflow/doc.go @@ -0,0 +1,2 @@ +// Package sflow decodes sFlow packets +package sflow diff --git a/sflow/flow_sample.go b/sflow/flow_sample.go index 5a02f94c..2137fd96 100644 --- a/sflow/flow_sample.go +++ b/sflow/flow_sample.go @@ -1,4 +1,3 @@ -// Package sflow decodes sFlow packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package sflow import ( diff --git a/stress/hammer/doc.go b/stress/hammer/doc.go new file mode 100644 index 00000000..5ee0407f --- /dev/null +++ b/stress/hammer/doc.go @@ -0,0 +1,2 @@ +// Package hammer generates ipfix packets +package hammer diff --git a/stress/hammer/hammer.go b/stress/hammer/hammer.go index e9801f66..4b821cb7 100644 --- a/stress/hammer/hammer.go +++ b/stress/hammer/hammer.go @@ -1,4 +1,3 @@ -// Package hammer generates ipfix packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package hammer import ( diff --git a/stress/hammer/hammer_test.go b/stress/hammer/hammer_test.go index a7e0de0e..bbdf67a4 100644 --- a/stress/hammer/hammer_test.go +++ b/stress/hammer/hammer_test.go @@ -1,4 +1,3 @@ -// Package hammer generates ipfix packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package hammer import ( diff --git a/stress/hammer/ipfix_samples.go b/stress/hammer/ipfix_samples.go index f87b5b22..41c18dc1 100644 --- a/stress/hammer/ipfix_samples.go +++ b/stress/hammer/ipfix_samples.go @@ -1,4 +1,3 @@ -// Package hammer generates ipfix packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package hammer var ipfixDataSamples = [][]byte{ diff --git a/stress/hammer/sflow_samples.go b/stress/hammer/sflow_samples.go index c4dad1d5..7ea79da4 100644 --- a/stress/hammer/sflow_samples.go +++ b/stress/hammer/sflow_samples.go @@ -1,4 +1,3 @@ -// Package hammer generates ipfix packets //: ---------------------------------------------------------------------------- //: Copyright (C) 2017 Verizon. All Rights Reserved. //: All Rights Reserved @@ -20,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package hammer var sFlowDataSamples = [][]byte{ diff --git a/stress/stress.go b/stress/stress.go index 2bbff75e..55440f22 100644 --- a/stress/stress.go +++ b/stress/stress.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/ipfix.go b/vflow/ipfix.go index 5d3388ec..d687ff0a 100644 --- a/vflow/ipfix.go +++ b/vflow/ipfix.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/ipfix_test.go b/vflow/ipfix_test.go index 8bf66e1f..9b290db8 100644 --- a/vflow/ipfix_test.go +++ b/vflow/ipfix_test.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/options.go b/vflow/options.go index b1340941..f962de4e 100644 --- a/vflow/options.go +++ b/vflow/options.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/sflow.go b/vflow/sflow.go index 7268c277..bfbe616f 100644 --- a/vflow/sflow.go +++ b/vflow/sflow.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/stats.go b/vflow/stats.go index af78c6fc..7b10434e 100644 --- a/vflow/stats.go +++ b/vflow/stats.go @@ -19,6 +19,7 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + package main import ( diff --git a/vflow/vflow.go b/vflow/vflow.go index 5bae01fc..56f487a6 100644 --- a/vflow/vflow.go +++ b/vflow/vflow.go @@ -19,6 +19,8 @@ //: See the License for the specific language governing permissions and //: limitations under the License. //: ---------------------------------------------------------------------------- + +// Package main is the vflow binary package main import (