Skip to content

Commit 561a260

Browse files
authored
added copyright to some schema registry files and (confluentinc#812)
moved copyright position on top of the files with one newline before package definition to avoid being interpreted as the package's documentation
1 parent 43506b7 commit 561a260

File tree

87 files changed

+529
-239
lines changed

Some content is hidden

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

87 files changed

+529
-239
lines changed

examples/admin_create_acls/admin_create_acls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Create ACLs
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Create ACLs
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/admin_create_topic/admin_create_topic.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Create topic
2-
package main
3-
41
/**
52
* Copyright 2018 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Create topic
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/admin_delete_acls/admin_delete_acls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Delete ACLs
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Delete ACLs
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/admin_delete_topics/admin_delete_topics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Delete topics
2-
package main
3-
41
/**
52
* Copyright 2018 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Delete topics
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/admin_describe_acls/admin_describe_acls.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Describe ACLs
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Describe ACLs
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/admin_describe_config/admin_describe_config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// List current configuration for a cluster resource
2-
package main
3-
41
/**
52
* Copyright 2018 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// List current configuration for a cluster resource
18+
package main
19+
2020
import (
2121
"context"
2222
"fmt"

examples/avro_generic_consumer_example/avro_generic_consumer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based high-level Apache Kafka consumer
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based high-level Apache Kafka consumer
18+
package main
19+
2020
// consumer_example implements a consumer using the non-channel Poll() API
2121
// to retrieve messages and events.
2222

examples/avro_generic_producer_example/avro_generic_producer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based Apache Kafka producer
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based Apache Kafka producer
18+
package main
19+
2020
import (
2121
"fmt"
2222
"os"

examples/avro_specific_consumer_example/avro_specific_consumer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based high-level Apache Kafka consumer
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based high-level Apache Kafka consumer
18+
package main
19+
2020
// consumer_example implements a consumer using the non-channel Poll() API
2121
// to retrieve messages and events.
2222

examples/confluent_cloud_example/confluent_cloud_example.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
// This is a simple example demonstrating how to produce a message to
2-
// a topic, and then reading it back again using a consumer. The topic
3-
// belongs to a Apache Kafka cluster from Confluent Cloud. For more
4-
// information about Confluent Cloud, please visit:
5-
//
6-
// https://www.confluent.io/confluent-cloud/
7-
8-
package main
9-
101
/**
112
* Copyright 2018 Confluent Inc.
123
*
@@ -23,6 +14,15 @@ package main
2314
* limitations under the License.
2415
*/
2516

17+
// This is a simple example demonstrating how to produce a message to
18+
// a topic, and then reading it back again using a consumer. The topic
19+
// belongs to a Apache Kafka cluster from Confluent Cloud. For more
20+
// information about Confluent Cloud, please visit:
21+
//
22+
// https://www.confluent.io/confluent-cloud/
23+
24+
package main
25+
2626
import (
2727
"context"
2828
"fmt"

examples/consumer_example/consumer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based high-level Apache Kafka consumer
2-
package main
3-
41
/**
52
* Copyright 2016 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based high-level Apache Kafka consumer
18+
package main
19+
2020
// consumer_example implements a consumer using the non-channel Poll() API
2121
// to retrieve messages and events.
2222

examples/consumer_offset_metadata/consumer_offset_metadata.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example Apache Kafka consumer that commit offset with metadata
2-
package main
3-
41
/**
52
* Copyright 2019 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example Apache Kafka consumer that commit offset with metadata
18+
package main
19+
2020
// consumer_offset_metadata implements a consumer that commit offset with metadata that represents the state
2121
// of the partition consumer at that point in time. The metadata string can be used by another consumer
2222
// to restore that state, so it can resume consumption.

examples/cooperative_consumer_example/cooperative_consumer_example.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// Example high-level Apache Kafka consumer using the
2-
// cooperative incremental rebalancing protocol which allows
3-
// seamless reassignment of partitions to other group members.
4-
package main
5-
61
/**
72
* Copyright 2020 Confluent Inc.
83
*
@@ -19,6 +14,11 @@ package main
1914
* limitations under the License.
2015
*/
2116

17+
// Example high-level Apache Kafka consumer using the
18+
// cooperative incremental rebalancing protocol which allows
19+
// seamless reassignment of partitions to other group members.
20+
package main
21+
2222
import (
2323
"fmt"
2424
"os"

examples/go-kafkacat/go-kafkacat.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example kafkacat clone written in Golang
2-
package main
3-
41
/**
52
* Copyright 2016 Confluent Inc.
63
*
@@ -17,15 +14,19 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example kafkacat clone written in Golang
18+
package main
19+
2020
import (
2121
"bufio"
2222
"fmt"
23-
"github.com/alecthomas/kingpin"
24-
"github.com/confluentinc/confluent-kafka-go/kafka"
2523
"os"
2624
"os/signal"
2725
"strings"
2826
"syscall"
27+
28+
"github.com/alecthomas/kingpin"
29+
"github.com/confluentinc/confluent-kafka-go/kafka"
2930
)
3031

3132
var (

examples/idempotent_producer_example/idempotent_producer_example.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
// Idempotent Producer example.
2-
//
3-
// The idempotent producer provides strict ordering and
4-
// exactly-once producing guarantees.
5-
//
6-
// From the application developer's perspective, the only difference
7-
// from a standard producer is the enabling of the feature by setting
8-
// the `enable.idempotence` configuration property to true, and
9-
// handling fatal errors (Error.IsFatal()) which are raised when the
10-
// idempotent guarantees can't be satisfied.
11-
12-
package main
13-
141
/**
152
* Copyright 2019 Confluent Inc.
163
*
@@ -27,6 +14,19 @@ package main
2714
* limitations under the License.
2815
*/
2916

17+
// Idempotent Producer example.
18+
//
19+
// The idempotent producer provides strict ordering and
20+
// exactly-once producing guarantees.
21+
//
22+
// From the application developer's perspective, the only difference
23+
// from a standard producer is the enabling of the feature by setting
24+
// the `enable.idempotence` configuration property to true, and
25+
// handling fatal errors (Error.IsFatal()) which are raised when the
26+
// idempotent guarantees can't be satisfied.
27+
28+
package main
29+
3030
import (
3131
"fmt"
3232
"os"

examples/json_consumer_example/json_consumer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based high-level Apache Kafka consumer
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based high-level Apache Kafka consumer
18+
package main
19+
2020
// consumer_example implements a consumer using the non-channel Poll() API
2121
// to retrieve messages and events.
2222

examples/json_producer_example/json_producer_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example function-based Apache Kafka producer
2-
package main
3-
41
/**
52
* Copyright 2022 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example function-based Apache Kafka producer
18+
package main
19+
2020
import (
2121
"fmt"
2222
"os"

examples/legacy/consumer_channel_example/consumer_channel_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example channel-based high-level Apache Kafka consumer
2-
package main
3-
41
/**
52
* Copyright 2016 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example channel-based high-level Apache Kafka consumer
18+
package main
19+
2020
import (
2121
"fmt"
2222
"os"

examples/legacy/producer_channel_example/producer_channel_example.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Example channel-based Apache Kafka producer
2-
package main
3-
41
/**
52
* Copyright 2016 Confluent Inc.
63
*
@@ -17,6 +14,9 @@ package main
1714
* limitations under the License.
1815
*/
1916

17+
// Example channel-based Apache Kafka producer
18+
package main
19+
2020
import (
2121
"fmt"
2222
"os"

examples/library-version/library-version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ package main
2121

2222
import (
2323
"fmt"
24+
2425
"github.com/confluentinc/confluent-kafka-go/kafka"
2526
)
2627

27-
28-
func main () {
28+
func main() {
2929
vnum, vstr := kafka.LibraryVersion()
3030
fmt.Printf("LibraryVersion: %s (0x%x)\n", vstr, vnum)
3131
fmt.Printf("LinkInfo: %s\n", kafka.LibrdkafkaLinkInfo)

0 commit comments

Comments
 (0)