Skip to content

Commit c3511e0

Browse files
committed
fix up package docs
1 parent 9fd5d66 commit c3511e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+60
-29
lines changed

disc/disc.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package discovery handles finding vFlow nodes through multicasting
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,8 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
23+
// Package discovery handles finding vFlow nodes through multicasting
2324
package discovery
2425

2526
import (

ipfix/decoder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/decoder_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package ipfix
2324

2425
import (

ipfix/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package ipfix decodes IPFIX packets
2+
package ipfix

ipfix/interpret.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/marshal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/marshal_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/memcache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/memcache_rpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
import (

ipfix/memcache_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package ipfix
2324

2425
import (

ipfix/rfc5102_model.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package ipfix decodes IPFIX packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package ipfix
2424

2525
// FieldType is IPFIX Abstract Data Types RFC5102#section-3.1

mirror/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package mirror replicates the IPFIX packets with spoofing feature to 3rd party collector
2+
package mirror

mirror/mirror.go

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
2222

23-
// Package mirror replicates the IPFIX packets with spoofing feature to 3rd party collector
2423
package mirror
2524

2625
import (

mirror/mirror_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package mirror
2324

2425
import (

monitor/monitor.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package main
2324

2425
import (

monitor/store/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package store ingest monitoring time series data points to different back-ends
2+
package store

monitor/store/store.go

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
2222

23-
// Package store ingest monitoring time series data points to different back-ends
2423
package store
2524

2625
import (

netflow/v9/decoder.go

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
2222

23-
// Package netflow9 decodes netflow version v9 packets
2423
package netflow9
2524

2625
import (

netflow/v9/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package netflow9 decodes netflow version v9 packets
2+
package netflow9

netflow/v9/memcache.go

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
2222

23-
// Package netflow9 decodes netflow version v9 packets
2423
package netflow9
2524

2625
import (

packet/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package packet decodes layer two, three and four OSI model layers
2+
package packet

packet/ethernet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import (

packet/ethernet_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import "testing"

packet/icmp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import "errors"

packet/network.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import (

packet/network_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package packet
2324

2425
import "testing"

packet/packet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import "errors"

packet/packet_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package packet
2324

2425
import "testing"

packet/transport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package packet decodes layer two, three and four OSI model layers
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package packet
2424

2525
import "errors"

packet/transport_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package packet
2324

2425
import "testing"

producer/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package producer pushes decoded messages to message queues
2+
package producer

producer/kafka.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package producer push decoded messages to messaging queue
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package producer
2424

2525
import (

producer/nsq.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package producer push decoded messages to messaging queue
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package producer
2424

2525
import (

producer/producer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package producer push decoded messages to messaging queue
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package producer
2424

2525
import (

producer/producer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package producer
2324

2425
import (

reader/reader.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package reader decodes a variable from buffer
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,8 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
23+
// Package reader decodes a variable from buffer
2324
package reader
2425

2526
import (

reader/reader_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package reader decodes a variable from buffer
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package reader
2424

2525
import (

sflow/decoder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package sflow decodes sFlow packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package sflow
2424

2525
import (

sflow/decoder_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
//: See the License for the specific language governing permissions and
2020
//: limitations under the License.
2121
//: ----------------------------------------------------------------------------
22+
2223
package sflow
2324

2425
import (

sflow/doc.go

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package sflow decodes sFlow packets
2+
package sflow

sflow/flow_sample.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Package sflow decodes sFlow packets
21
//: ----------------------------------------------------------------------------
32
//: Copyright (C) 2017 Verizon. All Rights Reserved.
43
//: All Rights Reserved
@@ -20,6 +19,7 @@
2019
//: See the License for the specific language governing permissions and
2120
//: limitations under the License.
2221
//: ----------------------------------------------------------------------------
22+
2323
package sflow
2424

2525
import (

0 commit comments

Comments
 (0)