Skip to content

Commit

Permalink
Added headers to files
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanperry1 committed Nov 15, 2023
1 parent caf43a2 commit 446e214
Show file tree
Hide file tree
Showing 113 changed files with 358 additions and 14 deletions.
3 changes: 3 additions & 0 deletions samples/callout/cmd/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

type Configuration struct {
Expand Down
3 changes: 3 additions & 0 deletions samples/callout/cmd/grpc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/callout/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/callout/cmd/output.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/callout/cmd/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

import (
Expand Down
5 changes: 5 additions & 0 deletions samples/callout/magefile.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//go:build mage

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package main

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/cmd/krill/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package main

import (
Expand Down
5 changes: 4 additions & 1 deletion samples/krill/components/broker/broker.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package broker provides the implementation of the broker component of the simulation framework.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// package broker provides the implementation of the broker component of the simulation framework.
package broker

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/broker/broker_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package broker

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/broker/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package broker

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/broker/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package broker

import (
Expand Down
10 changes: 8 additions & 2 deletions samples/krill/components/client/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package client contains all MQTT client interfaces and implementations.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// package client contains all MQTT client interfaces and implementations.
// It defines several client implementations, including MQTT v3 and v5 compatible clients
// as well as mocking clients for testing.
package client
Expand All @@ -25,7 +28,10 @@ type PublisherSubscriber interface {
GetName() string
}

// Publisher is an interface whose implementation should include the observable functionality (see registry package),
// Publisher is an interface whose implementation should include the observable functionality (see registry // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package),
// as well as the ability to publish a message on a given topic.
type Publisher interface {
Publish(topic string, qos byte, messagesRetained bool, data []byte) error
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/client/client_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/client/clientv5.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/client/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/client/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/client/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package client

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/edge/edge_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package edge

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/edge/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package edge

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/edge/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package edge

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/formatter/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package formatter

import (
Expand Down
5 changes: 4 additions & 1 deletion samples/krill/components/formatter/formatter.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package formatter provides the implementation of the formatter component of the simulation framework.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// package formatter provides the implementation of the formatter component of the simulation framework.
package formatter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/formatter/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package formatter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/formatter/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package formatter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/formatter/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package formatter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/limiter/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package limiter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/limiter/limiter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package limiter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/limiter/limiter_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package limiter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/limiter/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package limiter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/limiter/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package limiter

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/node/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package node

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/node/node_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package node

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/node/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package node

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/observer/observer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package observer

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/observer/observer_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package observer

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/observer/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package observer

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/observer/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package observer

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/outlet/outlet.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package outlet

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/outlet/outlet_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package outlet

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/outlet/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package outlet

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/outlet/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package outlet

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/provider/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package provider

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/provider/provider.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package provider

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/provider/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package provider

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/provider/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package provider

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/provider/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package provider

import (
Expand Down
5 changes: 4 additions & 1 deletion samples/krill/components/publisher/publisher.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package publisher provides the implementation for the publisher component of the simulation framework along with all associated interfaces.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// package publisher provides the implementation for the publisher component of the simulation framework along with all associated interfaces.
package publisher

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/publisher/publisher_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package publisher

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/publisher/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package publisher

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/publisher/service_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package publisher

import (
Expand Down
5 changes: 4 additions & 1 deletion samples/krill/components/registry/registry.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package registry contains the implementation of the monitor and observer components as well as other functionality related to configurable metrics and observability.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

// package registry contains the implementation of the monitor and observer components as well as other functionality related to configurable metrics and observability.
package registry

import "sync"
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/registry/registry_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package registry

import (
Expand Down
3 changes: 3 additions & 0 deletions samples/krill/components/registry/service.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package registry

import (
Expand Down
Loading

0 comments on commit 446e214

Please sign in to comment.