diff --git a/api.go b/api.go index 0d0ee950..39494f56 100644 --- a/api.go +++ b/api.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mainflux diff --git a/bootstrap/api/doc.go b/bootstrap/api/doc.go index 1805f917..54dcda3f 100644 --- a/bootstrap/api/doc.go +++ b/bootstrap/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains implementation of bootstrap service HTTP API. package api diff --git a/bootstrap/api/endpoint.go b/bootstrap/api/endpoint.go index 13129751..1b0d42c2 100644 --- a/bootstrap/api/endpoint.go +++ b/bootstrap/api/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/bootstrap/api/endpoint_test.go b/bootstrap/api/endpoint_test.go index 0a0d7e9e..05e9623a 100644 --- a/bootstrap/api/endpoint_test.go +++ b/bootstrap/api/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api_test diff --git a/bootstrap/api/logging.go b/bootstrap/api/logging.go index 58295e35..5493357e 100644 --- a/bootstrap/api/logging.go +++ b/bootstrap/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/bootstrap/api/metrics.go b/bootstrap/api/metrics.go index 405e39fc..50b61e67 100644 --- a/bootstrap/api/metrics.go +++ b/bootstrap/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/bootstrap/api/requests.go b/bootstrap/api/requests.go index 799dbc3d..9e9361bc 100644 --- a/bootstrap/api/requests.go +++ b/bootstrap/api/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/bootstrap/api/responses.go b/bootstrap/api/responses.go index 3b90fb33..0ba1acb3 100644 --- a/bootstrap/api/responses.go +++ b/bootstrap/api/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/bootstrap/api/transport.go b/bootstrap/api/transport.go index 02f85dd3..1f98f997 100644 --- a/bootstrap/api/transport.go +++ b/bootstrap/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/bootstrap/configs.go b/bootstrap/configs.go index c352d168..0bc82aa4 100644 --- a/bootstrap/configs.go +++ b/bootstrap/configs.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap diff --git a/bootstrap/doc.go b/bootstrap/doc.go index 9091c656..266f62d1 100644 --- a/bootstrap/doc.go +++ b/bootstrap/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package bootstrap contains the domain concept definitions needed to support // Mainflux bootstrap service functionality. diff --git a/bootstrap/mocks/configs.go b/bootstrap/mocks/configs.go index 60f38277..6bac368c 100644 --- a/bootstrap/mocks/configs.go +++ b/bootstrap/mocks/configs.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/bootstrap/mocks/things.go b/bootstrap/mocks/things.go index 4dfbcbb7..a57755db 100644 --- a/bootstrap/mocks/things.go +++ b/bootstrap/mocks/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/bootstrap/mocks/users.go b/bootstrap/mocks/users.go index f47b42ad..49b28685 100644 --- a/bootstrap/mocks/users.go +++ b/bootstrap/mocks/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/bootstrap/postgres/configs.go b/bootstrap/postgres/configs.go index f5edc49f..da2aaeaf 100644 --- a/bootstrap/postgres/configs.go +++ b/bootstrap/postgres/configs.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/bootstrap/postgres/configs_test.go b/bootstrap/postgres/configs_test.go index c27c3d34..b06716dc 100644 --- a/bootstrap/postgres/configs_test.go +++ b/bootstrap/postgres/configs_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/bootstrap/postgres/doc.go b/bootstrap/postgres/doc.go index 8d61596c..522b9a7a 100644 --- a/bootstrap/postgres/doc.go +++ b/bootstrap/postgres/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres contains repository implementations using PostgreSQL as // the underlying database. diff --git a/bootstrap/postgres/init.go b/bootstrap/postgres/init.go index 13c454d4..793ccbf6 100644 --- a/bootstrap/postgres/init.go +++ b/bootstrap/postgres/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/bootstrap/postgres/setup_test.go b/bootstrap/postgres/setup_test.go index 0d54b97f..947c3b64 100644 --- a/bootstrap/postgres/setup_test.go +++ b/bootstrap/postgres/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/bootstrap/reader.go b/bootstrap/reader.go index bf531e54..a627e9ca 100644 --- a/bootstrap/reader.go +++ b/bootstrap/reader.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap diff --git a/bootstrap/reader_test.go b/bootstrap/reader_test.go index 8829946e..209e42ac 100644 --- a/bootstrap/reader_test.go +++ b/bootstrap/reader_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap_test diff --git a/bootstrap/redis/consumer/doc.go b/bootstrap/redis/consumer/doc.go index d32426d2..37dc9941 100644 --- a/bootstrap/redis/consumer/doc.go +++ b/bootstrap/redis/consumer/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package consumer contains events consumer for events // published by Things service. diff --git a/bootstrap/redis/consumer/events.go b/bootstrap/redis/consumer/events.go index cdde96c4..f09bf4e3 100644 --- a/bootstrap/redis/consumer/events.go +++ b/bootstrap/redis/consumer/events.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package consumer diff --git a/bootstrap/redis/consumer/streams.go b/bootstrap/redis/consumer/streams.go index 2a5dcf75..ee22f190 100644 --- a/bootstrap/redis/consumer/streams.go +++ b/bootstrap/redis/consumer/streams.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package consumer diff --git a/bootstrap/redis/producer/doc.go b/bootstrap/redis/producer/doc.go index 0bd3ffd3..a8b0a08b 100644 --- a/bootstrap/redis/producer/doc.go +++ b/bootstrap/redis/producer/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package producer contains the domain events needed to support // event sourcing of Bootstrap service actions. diff --git a/bootstrap/redis/producer/events.go b/bootstrap/redis/producer/events.go index 85f1428f..e65d0d71 100644 --- a/bootstrap/redis/producer/events.go +++ b/bootstrap/redis/producer/events.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package producer diff --git a/bootstrap/redis/producer/setup_test.go b/bootstrap/redis/producer/setup_test.go index d5d2fee5..88811966 100644 --- a/bootstrap/redis/producer/setup_test.go +++ b/bootstrap/redis/producer/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package producer_test diff --git a/bootstrap/redis/producer/streams.go b/bootstrap/redis/producer/streams.go index 12898e46..7517a5e2 100644 --- a/bootstrap/redis/producer/streams.go +++ b/bootstrap/redis/producer/streams.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package producer diff --git a/bootstrap/redis/producer/streams_test.go b/bootstrap/redis/producer/streams_test.go index 5ecef735..1b5ff58a 100644 --- a/bootstrap/redis/producer/streams_test.go +++ b/bootstrap/redis/producer/streams_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package producer_test diff --git a/bootstrap/service.go b/bootstrap/service.go index 59ab4dda..b1b809a1 100644 --- a/bootstrap/service.go +++ b/bootstrap/service.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap diff --git a/bootstrap/service_test.go b/bootstrap/service_test.go index d8877d48..75fa896e 100644 --- a/bootstrap/service_test.go +++ b/bootstrap/service_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap_test diff --git a/bootstrap/state.go b/bootstrap/state.go index 6add1741..3c63dbb5 100644 --- a/bootstrap/state.go +++ b/bootstrap/state.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package bootstrap diff --git a/cli/channels.go b/cli/channels.go index 11408cd0..5d5c39c9 100644 --- a/cli/channels.go +++ b/cli/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/message.go b/cli/message.go index 61eba62e..bdc0d77b 100644 --- a/cli/message.go +++ b/cli/message.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/provision.go b/cli/provision.go index 0ea5a337..aae74a38 100644 --- a/cli/provision.go +++ b/cli/provision.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/sdk.go b/cli/sdk.go index dd88b7a0..9c29bf94 100644 --- a/cli/sdk.go +++ b/cli/sdk.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/things.go b/cli/things.go index f1e8bdb4..2bbdaecb 100644 --- a/cli/things.go +++ b/cli/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/users.go b/cli/users.go index 737b8f92..19676c3c 100644 --- a/cli/users.go +++ b/cli/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/utils.go b/cli/utils.go index 3450a644..6c137c14 100644 --- a/cli/utils.go +++ b/cli/utils.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cli/version.go b/cli/version.go index ce724da0..eafce28c 100644 --- a/cli/version.go +++ b/cli/version.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cli diff --git a/cmd/bootstrap/main.go b/cmd/bootstrap/main.go index 5c063d99..b37cc436 100644 --- a/cmd/bootstrap/main.go +++ b/cmd/bootstrap/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main import ( diff --git a/cmd/cassandra-reader/main.go b/cmd/cassandra-reader/main.go index 8f0b668c..1d561e9d 100644 --- a/cmd/cassandra-reader/main.go +++ b/cmd/cassandra-reader/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/cassandra-writer/main.go b/cmd/cassandra-writer/main.go index 0e0356c9..81de2996 100644 --- a/cmd/cassandra-writer/main.go +++ b/cmd/cassandra-writer/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 859c75b6..740867c1 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/coap/main.go b/cmd/coap/main.go index 569b75ed..8601412a 100644 --- a/cmd/coap/main.go +++ b/cmd/coap/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/http/main.go b/cmd/http/main.go index 137ddaea..4c31f826 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/influxdb-writer/main.go b/cmd/influxdb-writer/main.go index e9161d1b..7c28a5bf 100644 --- a/cmd/influxdb-writer/main.go +++ b/cmd/influxdb-writer/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/mongodb-reader/main.go b/cmd/mongodb-reader/main.go index 08a86520..b3254235 100644 --- a/cmd/mongodb-reader/main.go +++ b/cmd/mongodb-reader/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/mongodb-writer/main.go b/cmd/mongodb-writer/main.go index ecaa3273..4fca1182 100644 --- a/cmd/mongodb-writer/main.go +++ b/cmd/mongodb-writer/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/normalizer/main.go b/cmd/normalizer/main.go index bf64afd1..ce8fa801 100644 --- a/cmd/normalizer/main.go +++ b/cmd/normalizer/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/postgres-reader/main.go b/cmd/postgres-reader/main.go index 05faf35b..4b189dd3 100644 --- a/cmd/postgres-reader/main.go +++ b/cmd/postgres-reader/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/postgres-writer/main.go b/cmd/postgres-writer/main.go index 8e181b05..a616bcea 100644 --- a/cmd/postgres-writer/main.go +++ b/cmd/postgres-writer/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/things/main.go b/cmd/things/main.go index 75f6f2cf..039eaada 100644 --- a/cmd/things/main.go +++ b/cmd/things/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/users/main.go b/cmd/users/main.go index d2ce5046..d1e736d6 100644 --- a/cmd/users/main.go +++ b/cmd/users/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/cmd/ws/main.go b/cmd/ws/main.go index bab00e4c..216e4b72 100644 --- a/cmd/ws/main.go +++ b/cmd/ws/main.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package main diff --git a/coap/adapter.go b/coap/adapter.go index e31d7283..68a6594f 100644 --- a/coap/adapter.go +++ b/coap/adapter.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package coap contains the domain concept definitions needed to support // Mainflux coap adapter service functionality. All constant values are taken diff --git a/coap/api/doc.go b/coap/api/doc.go index a7449398..fb3127e4 100644 --- a/coap/api/doc.go +++ b/coap/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains API-related concerns: endpoint definitions, middlewares // and all resource representations. diff --git a/coap/api/logging.go b/coap/api/logging.go index 9c444eff..1a1f5225 100644 --- a/coap/api/logging.go +++ b/coap/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/coap/api/metrics.go b/coap/api/metrics.go index 7c65653e..c92c2085 100644 --- a/coap/api/metrics.go +++ b/coap/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/coap/api/transport.go b/coap/api/transport.go index e67b4857..11b98125 100644 --- a/coap/api/transport.go +++ b/coap/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/coap/api/util.go b/coap/api/util.go index 8a12bc57..e2e42a56 100644 --- a/coap/api/util.go +++ b/coap/api/util.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/coap/nats/publisher.go b/coap/nats/publisher.go index a479be72..4b06b14a 100644 --- a/coap/nats/publisher.go +++ b/coap/nats/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package nats contains NATS message publisher implementation. package nats diff --git a/coap/observer.go b/coap/observer.go index 026c1901..26a957ac 100644 --- a/coap/observer.go +++ b/coap/observer.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package coap diff --git a/doc.go b/doc.go index 537a77a7..5f6d6cc9 100644 --- a/doc.go +++ b/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package mainflux acts as an umbrella package containing multiple different // microservices and defines all shared domain concepts. diff --git a/env.go b/env.go index 9b081074..98705f83 100644 --- a/env.go +++ b/env.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mainflux diff --git a/http/adapter.go b/http/adapter.go index 05724df2..ad17c6db 100644 --- a/http/adapter.go +++ b/http/adapter.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package http contains the domain concept definitions needed to support // Mainflux http adapter service functionality. diff --git a/http/api/doc.go b/http/api/doc.go index a7449398..fb3127e4 100644 --- a/http/api/doc.go +++ b/http/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains API-related concerns: endpoint definitions, middlewares // and all resource representations. diff --git a/http/api/endpoint.go b/http/api/endpoint.go index 8fa0d1e2..077d666d 100644 --- a/http/api/endpoint.go +++ b/http/api/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/http/api/endpoint_test.go b/http/api/endpoint_test.go index 45626611..46ad9998 100644 --- a/http/api/endpoint_test.go +++ b/http/api/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api_test diff --git a/http/api/logging.go b/http/api/logging.go index 15d8be5c..a82d09d6 100644 --- a/http/api/logging.go +++ b/http/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/http/api/metrics.go b/http/api/metrics.go index afe5c16f..7a971fe2 100644 --- a/http/api/metrics.go +++ b/http/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/http/api/requests.go b/http/api/requests.go index 0b14dfbe..1131d794 100644 --- a/http/api/requests.go +++ b/http/api/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/http/api/transport.go b/http/api/transport.go index 9f451622..1583f838 100644 --- a/http/api/transport.go +++ b/http/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/http/mocks/publisher.go b/http/mocks/publisher.go index 899eb4be..f95badc7 100644 --- a/http/mocks/publisher.go +++ b/http/mocks/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/http/mocks/things.go b/http/mocks/things.go index f69e3a1c..3a47bf1e 100644 --- a/http/mocks/things.go +++ b/http/mocks/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/http/nats/publisher.go b/http/nats/publisher.go index 1991f6ff..90ee9ecd 100644 --- a/http/nats/publisher.go +++ b/http/nats/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package nats contains NATS message publisher implementation. package nats diff --git a/internal.proto b/internal.proto index 683d6451..7f545bc9 100644 --- a/internal.proto +++ b/internal.proto @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// syntax = "proto3"; diff --git a/load-test/src/test/scala/com/mainflux/loadtest/CreateAndRetrieveThings.scala b/load-test/src/test/scala/com/mainflux/loadtest/CreateAndRetrieveThings.scala index 9c73c0ad..85b24308 100644 --- a/load-test/src/test/scala/com/mainflux/loadtest/CreateAndRetrieveThings.scala +++ b/load-test/src/test/scala/com/mainflux/loadtest/CreateAndRetrieveThings.scala @@ -1,7 +1,5 @@ /* - * Copyright (c) 2018 - * Mainflux - * + * Copyright (c) Mainflux * SPDX-License-Identifier: Apache-2.0 */ diff --git a/load-test/src/test/scala/com/mainflux/loadtest/PublishHttpMessages.scala b/load-test/src/test/scala/com/mainflux/loadtest/PublishHttpMessages.scala index 0b24380a..197e890e 100644 --- a/load-test/src/test/scala/com/mainflux/loadtest/PublishHttpMessages.scala +++ b/load-test/src/test/scala/com/mainflux/loadtest/PublishHttpMessages.scala @@ -1,7 +1,5 @@ /* - * Copyright (c) 2018 - * Mainflux - * + * Copyright (c) Mainflux * SPDX-License-Identifier: Apache-2.0 */ diff --git a/load-test/src/test/scala/com/mainflux/loadtest/PublishMessages.scala b/load-test/src/test/scala/com/mainflux/loadtest/PublishMessages.scala index cfa49388..6f78e5ce 100644 --- a/load-test/src/test/scala/com/mainflux/loadtest/PublishMessages.scala +++ b/load-test/src/test/scala/com/mainflux/loadtest/PublishMessages.scala @@ -1,7 +1,5 @@ /* - * Copyright (c) 2018 - * Mainflux - * + * Copyright (c) Mainflux * SPDX-License-Identifier: Apache-2.0 */ diff --git a/load-test/src/test/scala/com/mainflux/loadtest/PublishWsMessages.scala b/load-test/src/test/scala/com/mainflux/loadtest/PublishWsMessages.scala index dfd1d941..d492c781 100644 --- a/load-test/src/test/scala/com/mainflux/loadtest/PublishWsMessages.scala +++ b/load-test/src/test/scala/com/mainflux/loadtest/PublishWsMessages.scala @@ -1,7 +1,5 @@ /* - * Copyright (c) 2018 - * Mainflux - * + * Copyright (c) Mainflux * SPDX-License-Identifier: Apache-2.0 */ diff --git a/load-test/src/test/scala/com/mainflux/loadtest/TestCase.scala b/load-test/src/test/scala/com/mainflux/loadtest/TestCase.scala index 98c0309e..a44e8e60 100644 --- a/load-test/src/test/scala/com/mainflux/loadtest/TestCase.scala +++ b/load-test/src/test/scala/com/mainflux/loadtest/TestCase.scala @@ -1,7 +1,5 @@ /* - * Copyright (c) 2018 - * Mainflux - * + * Copyright (c) Mainflux * SPDX-License-Identifier: Apache-2.0 */ diff --git a/logger/doc.go b/logger/doc.go index a0ed2a3c..76b5e7df 100644 --- a/logger/doc.go +++ b/logger/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package logger contains logger API definition, wrapper that // can be used around any other logger. diff --git a/logger/level.go b/logger/level.go index d9726d47..a22acf0a 100644 --- a/logger/level.go +++ b/logger/level.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package logger diff --git a/logger/logger.go b/logger/logger.go index 1e1fef27..d8defa92 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package logger diff --git a/logger/logger_test.go b/logger/logger_test.go index ecf6ad48..01568b1c 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package logger_test diff --git a/lora/api/api.go b/lora/api/api.go index a4d8afb5..297b1bfd 100644 --- a/lora/api/api.go +++ b/lora/api/api.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/lora/api/logging.go b/lora/api/logging.go index 34b14d05..570e76ab 100644 --- a/lora/api/logging.go +++ b/lora/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/lora/api/metrics.go b/lora/api/metrics.go index ca3a4398..c04ddfde 100644 --- a/lora/api/metrics.go +++ b/lora/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/lora/nats/publisher.go b/lora/nats/publisher.go index 83720676..33c92925 100644 --- a/lora/nats/publisher.go +++ b/lora/nats/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package nats contains NATS message publisher implementation. package nats diff --git a/lora/redis/routemap.go b/lora/redis/routemap.go index 50e453c2..a4bda46d 100644 --- a/lora/redis/routemap.go +++ b/lora/redis/routemap.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis diff --git a/lora/routemap.go b/lora/routemap.go index 5ea9bcf1..9445b125 100644 --- a/lora/routemap.go +++ b/lora/routemap.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package lora diff --git a/message.proto b/message.proto index 71da7b8f..ecbecb63 100644 --- a/message.proto +++ b/message.proto @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// syntax = "proto3"; package mainflux; diff --git a/mkdocs.yml b/mkdocs.yml index e09c9523..49681a48 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,11 +1,9 @@ # -# Copyright (c) 2018 -# Mainflux -# +# Copyright (c) Mainflux # SPDX-License-Identifier: Apache-2.0 # -copyright: Copyright (c) 2015-2019 Mainflux +copyright: Copyright (c) Mainflux repo_url: https://github.com/mainflux/mainflux site_description: Mainflux IoT System site_name: Mainflux @@ -20,23 +18,23 @@ extra: markdown_extensions: - admonition - toc: - permalink: '#' + permalink: "#" pages: -- Overview: - - About: index.md - - Contributing: CONTRIBUTING.md - - License: LICENSE.txt -- Architecture: architecture.md -- Getting Started: getting-started.md -- Provisioning: provisioning.md -- Messaging: messaging.md -- Storage: storage.md -- LoRa: lora.md -- Security: - - Secure communication: security.md - - Authentication: authentication.md -- CLI: cli.md -- Bootstrap: bootstrap.md -- Developer's Guide: dev-guide.md -- Load Test: load-test.md + - Overview: + - About: index.md + - Contributing: CONTRIBUTING.md + - License: LICENSE.txt + - Architecture: architecture.md + - Getting Started: getting-started.md + - Provisioning: provisioning.md + - Messaging: messaging.md + - Storage: storage.md + - LoRa: lora.md + - Security: + - Secure communication: security.md + - Authentication: authentication.md + - CLI: cli.md + - Bootstrap: bootstrap.md + - Developer's Guide: dev-guide.md + - Load Test: load-test.md diff --git a/mqtt/aedes/mqtt.js b/mqtt/aedes/mqtt.js index 4da0227d..3d6e52ff 100644 --- a/mqtt/aedes/mqtt.js +++ b/mqtt/aedes/mqtt.js @@ -1,6 +1,4 @@ -// Copyright (c) 2015-2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 'use strict'; @@ -36,15 +34,17 @@ var config = { es_pass: process.env.MF_MQTT_ADAPTER_ES_PASS || 'mqtt', es_db: Number(process.env.MF_MQTT_ADAPTER_ES_DB) || 0, client_tls: (process.env.MF_MQTT_ADAPTER_CLIENT_TLS == 'true') || false, - ca_certs: process.env.MF_MQTT_ADAPTER_CA_CERTS || '', + ca_certs: process.env.MF_MQTT_ADAPTER_CA_CERTS || '', concurrency: Number(process.env.MF_MQTT_CONCURRENT_MESSAGES) || 100, auth_url: process.env.MF_THINGS_URL || 'localhost:8181', schema_dir: process.argv[2] || '.', }, - logger = bunyan.createLogger({name: 'mqtt', level: config.log_level}), + logger = bunyan.createLogger({ + name: 'mqtt', + level: config.log_level + }), packageDefinition = protoLoader.loadSync( - config.schema_dir + '/internal.proto', - { + config.schema_dir + '/internal.proto', { keepCase: true, longs: String, enums: String, @@ -81,7 +81,7 @@ var config = { persistence: aedesRedis, concurrency: config.concurrency }), - things = (function() { + things = (function () { var certs; if (config.client_tls) { certs = grpc.credentials.createSsl(config.ca_certs); @@ -91,7 +91,7 @@ var config = { return new thingsSchema.ThingsService(config.auth_url, certs); })(), esclient = redis.createClient({ - port: config.es_port, + port: config.es_port, host: config.es_host, password: config.es_pass, db: config.es_db @@ -104,12 +104,14 @@ var config = { logging({ instance: aedes, servers: servers, - pinoOptions: {level: 30} + pinoOptions: { + level: 30 + } }); logger.level(config.log_level); -esclient.on('error', function(err) { +esclient.on('error', function (err) { logger.warn('error on redis connection: %s', err.message); }); @@ -124,8 +126,10 @@ function startWs() { } res.statusCode = 404; res.end('{"service":"mqtt-adpater", "message": "not found"}') - }); - websocket.createServer({server: server}, aedes.handle); + }); + websocket.createServer({ + server: server + }, aedes.handle); server.listen(config.ws_port); return server; } @@ -134,7 +138,9 @@ function startMqtt() { return net.createServer(aedes.handle).listen(config.mqtt_port); } -nats.subscribe('channel.>', {'queue':'mqtts'}, function (msg) { +nats.subscribe('channel.>', { + 'queue': 'mqtts' +}, function (msg) { var m = RawMessage.decode(msg), packet, subtopic, ct; if (m && m.protocol !== 'mqtt') { @@ -174,8 +180,8 @@ aedes.authorizePublish = function (client, packet, publish) { }, // Parse unlimited subtopics baseLength = 3, // First 3 elements which represents the base part of topic. - isEmpty = function(value) { - return value !== ''; + isEmpty = function (value) { + return value !== ''; }, parts = packet.topic.split('/'), elements = parts.slice(baseLength).join('.').split('.').filter(isEmpty), @@ -251,8 +257,10 @@ aedes.authorizeSubscribe = function (client, packet, subscribe) { aedes.authenticate = function (client, username, password, acknowledge) { var pass = (password || '').toString(), - identity = {value: pass}, - onIdentify = function(err, res) { + identity = { + value: pass + }, + onIdentify = function (err, res) { if (!err) { client.thingId = res.value.toString() || ''; client.id = client.id || client.thingId; @@ -283,12 +291,12 @@ aedes.on('connectionError', function (client, err) { logger.warn('connection error: client: %s, error: %s', client.id, err.message); }); -aedes.on('error', function(err) { +aedes.on('error', function (err) { logger.warn('aedes error: %s', err.message); }); function publishConnEvent(id, type) { - var onPublish = function(err) { + var onPublish = function (err) { if (err) { logger.warn('event publish failed: %s', err); } @@ -299,4 +307,4 @@ function publishConnEvent(id, type) { 'event_type', type, 'instance', config.instance_id, onPublish); -} +} \ No newline at end of file diff --git a/normalizer/api/api.go b/normalizer/api/api.go index 3665c879..920c3ff2 100644 --- a/normalizer/api/api.go +++ b/normalizer/api/api.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/normalizer/api/logging.go b/normalizer/api/logging.go index 4418c056..16fc96d6 100644 --- a/normalizer/api/logging.go +++ b/normalizer/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/normalizer/api/metrics.go b/normalizer/api/metrics.go index fe41ea5d..4d97ce2f 100644 --- a/normalizer/api/metrics.go +++ b/normalizer/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/normalizer/doc.go b/normalizer/doc.go index 0901ae24..0a3d625d 100644 --- a/normalizer/doc.go +++ b/normalizer/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package normalizer contains the domain concept definitions needed to // support Mainflux normalizer service functionality. diff --git a/normalizer/nats/pubsub.go b/normalizer/nats/pubsub.go index 617c0a45..8c059d4c 100644 --- a/normalizer/nats/pubsub.go +++ b/normalizer/nats/pubsub.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package nats diff --git a/normalizer/normalizer.go b/normalizer/normalizer.go index 6bcaa17f..c7c6aab7 100644 --- a/normalizer/normalizer.go +++ b/normalizer/normalizer.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package normalizer diff --git a/normalizer/service.go b/normalizer/service.go index ef77b796..41c91fef 100644 --- a/normalizer/service.go +++ b/normalizer/service.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package normalizer diff --git a/publisher.go b/publisher.go index 736c45f4..9928041b 100644 --- a/publisher.go +++ b/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mainflux diff --git a/readers/api/endpoint.go b/readers/api/endpoint.go index 9433de9b..112ffa58 100644 --- a/readers/api/endpoint.go +++ b/readers/api/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/readers/api/endpoint_test.go b/readers/api/endpoint_test.go index 5429e470..137e1e60 100644 --- a/readers/api/endpoint_test.go +++ b/readers/api/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api_test diff --git a/readers/api/logging.go b/readers/api/logging.go index 2b71c276..9fe32158 100644 --- a/readers/api/logging.go +++ b/readers/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/readers/api/metrics.go b/readers/api/metrics.go index 04e9d80a..1dfe1451 100644 --- a/readers/api/metrics.go +++ b/readers/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/readers/api/requests.go b/readers/api/requests.go index d903d46c..5e058136 100644 --- a/readers/api/requests.go +++ b/readers/api/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/readers/api/responses.go b/readers/api/responses.go index d36b6bb7..c30be083 100644 --- a/readers/api/responses.go +++ b/readers/api/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/readers/api/transport.go b/readers/api/transport.go index 5a3a8ea5..c7c03cfc 100644 --- a/readers/api/transport.go +++ b/readers/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/readers/cassandra/doc.go b/readers/cassandra/doc.go index 8638513d..01d2e0fd 100644 --- a/readers/cassandra/doc.go +++ b/readers/cassandra/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package cassandra contains Cassandra specific reader implementation. package cassandra diff --git a/readers/cassandra/init.go b/readers/cassandra/init.go index 6c601e90..eef0dbaa 100644 --- a/readers/cassandra/init.go +++ b/readers/cassandra/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra diff --git a/readers/cassandra/messages.go b/readers/cassandra/messages.go index 63e9976b..fec59e51 100644 --- a/readers/cassandra/messages.go +++ b/readers/cassandra/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra diff --git a/readers/cassandra/messages_test.go b/readers/cassandra/messages_test.go index 458ecd88..11bcd4d8 100644 --- a/readers/cassandra/messages_test.go +++ b/readers/cassandra/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra_test diff --git a/readers/cassandra/setup_test.go b/readers/cassandra/setup_test.go index addf51af..c01bcc6a 100644 --- a/readers/cassandra/setup_test.go +++ b/readers/cassandra/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra_test diff --git a/readers/messages.go b/readers/messages.go index 5b2240dd..f88b36a2 100644 --- a/readers/messages.go +++ b/readers/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package readers diff --git a/readers/mocks/messages.go b/readers/mocks/messages.go index 1078cead..f17c2c4c 100644 --- a/readers/mocks/messages.go +++ b/readers/mocks/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/readers/mocks/things.go b/readers/mocks/things.go index baae4ee9..dbb016b2 100644 --- a/readers/mocks/things.go +++ b/readers/mocks/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/readers/mongodb/doc.go b/readers/mongodb/doc.go index daa1b91f..f0d31989 100644 --- a/readers/mongodb/doc.go +++ b/readers/mongodb/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package mongodb contains the domain concept definitions needed to // support Mainflux MondoDB reader service functionality. diff --git a/readers/mongodb/messages.go b/readers/mongodb/messages.go index 5275c253..d7f99892 100644 --- a/readers/mongodb/messages.go +++ b/readers/mongodb/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb diff --git a/readers/mongodb/messages_test.go b/readers/mongodb/messages_test.go index 89e621e1..ec23d517 100644 --- a/readers/mongodb/messages_test.go +++ b/readers/mongodb/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb_test diff --git a/readers/mongodb/setup_test.go b/readers/mongodb/setup_test.go index aecc353f..5a06ef06 100644 --- a/readers/mongodb/setup_test.go +++ b/readers/mongodb/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb_test diff --git a/readers/postgres/doc.go b/readers/postgres/doc.go index 2a5bf89e..7f34977b 100644 --- a/readers/postgres/doc.go +++ b/readers/postgres/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres contains repository implementations using Postgres as // the underlying database. diff --git a/readers/postgres/init.go b/readers/postgres/init.go index aa1c9715..b157f958 100644 --- a/readers/postgres/init.go +++ b/readers/postgres/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/readers/postgres/messages.go b/readers/postgres/messages.go index 015de477..05574619 100644 --- a/readers/postgres/messages.go +++ b/readers/postgres/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/readers/postgres/messages_test.go b/readers/postgres/messages_test.go index 79bc51e3..965e7566 100644 --- a/readers/postgres/messages_test.go +++ b/readers/postgres/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/readers/postgres/setup_test.go b/readers/postgres/setup_test.go index 62dcfa1d..6770e3d0 100644 --- a/readers/postgres/setup_test.go +++ b/readers/postgres/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres_test contains tests for PostgreSQL repository // implementations. diff --git a/scripts/provision-dev.sh b/scripts/provision-dev.sh index f3048db2..9f60507b 100755 --- a/scripts/provision-dev.sh +++ b/scripts/provision-dev.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash # -# Copyright (c) 2018 -# Mainflux -# +# Copyright (c) Mainflux # SPDX-License-Identifier: Apache-2.0 # @@ -15,7 +13,7 @@ ### if [ $# -lt 4 ] - then +then echo "Usage: $0 user_email user_password device_name channel_name" exit 1 fi diff --git a/sdk/go/channels.go b/sdk/go/channels.go index ae4a4056..421477d0 100644 --- a/sdk/go/channels.go +++ b/sdk/go/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/channels_test.go b/sdk/go/channels_test.go index 9c78d153..72ca76f7 100644 --- a/sdk/go/channels_test.go +++ b/sdk/go/channels_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk_test diff --git a/sdk/go/message.go b/sdk/go/message.go index 9a54bc60..16f1781b 100644 --- a/sdk/go/message.go +++ b/sdk/go/message.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/message_test.go b/sdk/go/message_test.go index 1663b56a..b24c9951 100644 --- a/sdk/go/message_test.go +++ b/sdk/go/message_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk_test diff --git a/sdk/go/responses.go b/sdk/go/responses.go index e77a51cc..9c620a0c 100644 --- a/sdk/go/responses.go +++ b/sdk/go/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/sdk.go b/sdk/go/sdk.go index 1785ac1d..41867b1b 100644 --- a/sdk/go/sdk.go +++ b/sdk/go/sdk.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/things.go b/sdk/go/things.go index 3de35b95..ee908f8c 100644 --- a/sdk/go/things.go +++ b/sdk/go/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/things_test.go b/sdk/go/things_test.go index ba11e467..bf028f12 100644 --- a/sdk/go/things_test.go +++ b/sdk/go/things_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk_test diff --git a/sdk/go/users.go b/sdk/go/users.go index 0e519816..16f47f00 100644 --- a/sdk/go/users.go +++ b/sdk/go/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/sdk/go/users_test.go b/sdk/go/users_test.go index cd415c05..533fef05 100644 --- a/sdk/go/users_test.go +++ b/sdk/go/users_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk_test diff --git a/sdk/go/version.go b/sdk/go/version.go index 8a39c555..b9086c8b 100644 --- a/sdk/go/version.go +++ b/sdk/go/version.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package sdk diff --git a/things/api/auth/grpc/client.go b/things/api/auth/grpc/client.go index f44904a0..0812e97f 100644 --- a/things/api/auth/grpc/client.go +++ b/things/api/auth/grpc/client.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/things/api/auth/grpc/doc.go b/things/api/auth/grpc/doc.go index 9f813fae..1d1d9630 100644 --- a/things/api/auth/grpc/doc.go +++ b/things/api/auth/grpc/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package grpc contains implementation of things service gRPC API. package grpc diff --git a/things/api/auth/grpc/endpoint.go b/things/api/auth/grpc/endpoint.go index 92131d98..1507727a 100644 --- a/things/api/auth/grpc/endpoint.go +++ b/things/api/auth/grpc/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/things/api/auth/grpc/endpoint_test.go b/things/api/auth/grpc/endpoint_test.go index 7b901bc2..569844dc 100644 --- a/things/api/auth/grpc/endpoint_test.go +++ b/things/api/auth/grpc/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc_test diff --git a/things/api/auth/grpc/requests.go b/things/api/auth/grpc/requests.go index f90f2b19..962739d7 100644 --- a/things/api/auth/grpc/requests.go +++ b/things/api/auth/grpc/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/things/api/auth/grpc/responses.go b/things/api/auth/grpc/responses.go index e9d17d73..c79471ed 100644 --- a/things/api/auth/grpc/responses.go +++ b/things/api/auth/grpc/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/things/api/auth/grpc/server.go b/things/api/auth/grpc/server.go index 95dc05c7..6cb3d38f 100644 --- a/things/api/auth/grpc/server.go +++ b/things/api/auth/grpc/server.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/things/api/auth/grpc/setup_test.go b/things/api/auth/grpc/setup_test.go index 4c81afc4..75aefdcf 100644 --- a/things/api/auth/grpc/setup_test.go +++ b/things/api/auth/grpc/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc_test diff --git a/things/api/auth/http/doc.go b/things/api/auth/http/doc.go index 3e827062..fc329a3d 100644 --- a/things/api/auth/http/doc.go +++ b/things/api/auth/http/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package http contains implementation of things auth service HTTP API. package http diff --git a/things/api/auth/http/endpoint.go b/things/api/auth/http/endpoint.go index a8ca8b0e..020a7337 100644 --- a/things/api/auth/http/endpoint.go +++ b/things/api/auth/http/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/auth/http/endpoint_test.go b/things/api/auth/http/endpoint_test.go index b3957e36..b52939f2 100644 --- a/things/api/auth/http/endpoint_test.go +++ b/things/api/auth/http/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http_test diff --git a/things/api/auth/http/requests.go b/things/api/auth/http/requests.go index 79ae3e54..04f2d965 100644 --- a/things/api/auth/http/requests.go +++ b/things/api/auth/http/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/auth/http/responses.go b/things/api/auth/http/responses.go index 19c090c5..eaec6207 100644 --- a/things/api/auth/http/responses.go +++ b/things/api/auth/http/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/auth/http/transport.go b/things/api/auth/http/transport.go index 459e46cb..32730a60 100644 --- a/things/api/auth/http/transport.go +++ b/things/api/auth/http/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/doc.go b/things/api/doc.go index a7449398..fb3127e4 100644 --- a/things/api/doc.go +++ b/things/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains API-related concerns: endpoint definitions, middlewares // and all resource representations. diff --git a/things/api/logging.go b/things/api/logging.go index de76f1a3..b7e25876 100644 --- a/things/api/logging.go +++ b/things/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/things/api/metrics.go b/things/api/metrics.go index f4c88006..f9bc4bc3 100644 --- a/things/api/metrics.go +++ b/things/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/things/api/things/http/doc.go b/things/api/things/http/doc.go index 5cbe595b..12d530b3 100644 --- a/things/api/things/http/doc.go +++ b/things/api/things/http/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package http contains implementation of things service HTTP API. package http diff --git a/things/api/things/http/endpoint.go b/things/api/things/http/endpoint.go index cf96e566..997e7d3f 100644 --- a/things/api/things/http/endpoint.go +++ b/things/api/things/http/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/things/http/endpoint_test.go b/things/api/things/http/endpoint_test.go index d1230625..59fcd238 100644 --- a/things/api/things/http/endpoint_test.go +++ b/things/api/things/http/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http_test diff --git a/things/api/things/http/requests.go b/things/api/things/http/requests.go index 9da93827..8ff0179a 100644 --- a/things/api/things/http/requests.go +++ b/things/api/things/http/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/things/http/responses.go b/things/api/things/http/responses.go index c50c9c92..299373bb 100644 --- a/things/api/things/http/responses.go +++ b/things/api/things/http/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/api/things/http/transport.go b/things/api/things/http/transport.go index 487df442..1cc47cc0 100644 --- a/things/api/things/http/transport.go +++ b/things/api/things/http/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/things/channels.go b/things/channels.go index 3f7cfce1..4015f9dc 100644 --- a/things/channels.go +++ b/things/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package things diff --git a/things/doc.go b/things/doc.go index 7c92824c..1206d3c5 100644 --- a/things/doc.go +++ b/things/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package things contains the domain concept definitions needed to support // Mainflux things service functionality. diff --git a/things/idp.go b/things/idp.go index 7cb219e6..bc624bb4 100644 --- a/things/idp.go +++ b/things/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package things diff --git a/things/mocks/channels.go b/things/mocks/channels.go index fc38f8b2..7d3e2413 100644 --- a/things/mocks/channels.go +++ b/things/mocks/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/things/mocks/commons.go b/things/mocks/commons.go index 632e403e..5dec04ae 100644 --- a/things/mocks/commons.go +++ b/things/mocks/commons.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/things/mocks/idp.go b/things/mocks/idp.go index 0c37a5a9..27f5614c 100644 --- a/things/mocks/idp.go +++ b/things/mocks/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/things/mocks/things.go b/things/mocks/things.go index 9f5b9678..10bfaab4 100644 --- a/things/mocks/things.go +++ b/things/mocks/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/things/mocks/users.go b/things/mocks/users.go index f47b42ad..49b28685 100644 --- a/things/mocks/users.go +++ b/things/mocks/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/things/postgres/channels.go b/things/postgres/channels.go index 9aaa2134..b64f5685 100644 --- a/things/postgres/channels.go +++ b/things/postgres/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/things/postgres/channels_test.go b/things/postgres/channels_test.go index f2a9f6d4..508d8135 100644 --- a/things/postgres/channels_test.go +++ b/things/postgres/channels_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/things/postgres/doc.go b/things/postgres/doc.go index 8d61596c..522b9a7a 100644 --- a/things/postgres/doc.go +++ b/things/postgres/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres contains repository implementations using PostgreSQL as // the underlying database. diff --git a/things/postgres/init.go b/things/postgres/init.go index 77aeee97..5ae5352c 100644 --- a/things/postgres/init.go +++ b/things/postgres/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/things/postgres/setup_test.go b/things/postgres/setup_test.go index 0a689a10..3882bd26 100644 --- a/things/postgres/setup_test.go +++ b/things/postgres/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres_test contains tests for PostgreSQL repository // implementations. diff --git a/things/postgres/things.go b/things/postgres/things.go index 792b3515..e748f00f 100644 --- a/things/postgres/things.go +++ b/things/postgres/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/things/postgres/things_test.go b/things/postgres/things_test.go index 127216fc..2cafe42e 100644 --- a/things/postgres/things_test.go +++ b/things/postgres/things_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/things/redis/channels.go b/things/redis/channels.go index b4958742..286d6dfc 100644 --- a/things/redis/channels.go +++ b/things/redis/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis diff --git a/things/redis/channels_test.go b/things/redis/channels_test.go index d8a6eb0a..9613e707 100644 --- a/things/redis/channels_test.go +++ b/things/redis/channels_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis_test diff --git a/things/redis/doc.go b/things/redis/doc.go index d69cfdbb..3b7b7486 100644 --- a/things/redis/doc.go +++ b/things/redis/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package redis contains cache implementations using Redis as // the underlying database. diff --git a/things/redis/setup_test.go b/things/redis/setup_test.go index 880d2045..c790d6f3 100644 --- a/things/redis/setup_test.go +++ b/things/redis/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis_test diff --git a/things/redis/streams.go b/things/redis/streams.go index e40bf652..f7bec7c6 100644 --- a/things/redis/streams.go +++ b/things/redis/streams.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis diff --git a/things/redis/streams_test.go b/things/redis/streams_test.go index 520a1df7..e2e57c22 100644 --- a/things/redis/streams_test.go +++ b/things/redis/streams_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis_test diff --git a/things/redis/things.go b/things/redis/things.go index b2ccd1c5..d763cfd0 100644 --- a/things/redis/things.go +++ b/things/redis/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis diff --git a/things/redis/things_test.go b/things/redis/things_test.go index f333816f..1db70e10 100644 --- a/things/redis/things_test.go +++ b/things/redis/things_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package redis_test diff --git a/things/service.go b/things/service.go index a49de1c0..154084d2 100644 --- a/things/service.go +++ b/things/service.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package things diff --git a/things/service_test.go b/things/service_test.go index f4609f30..2318e96e 100644 --- a/things/service_test.go +++ b/things/service_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package things_test diff --git a/things/things.go b/things/things.go index 5abec996..2cc444c7 100644 --- a/things/things.go +++ b/things/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package things diff --git a/things/tracing/channels.go b/things/tracing/channels.go index e6f75233..3a0ed46b 100644 --- a/things/tracing/channels.go +++ b/things/tracing/channels.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package tracing diff --git a/things/tracing/doc.go b/things/tracing/doc.go index 526a7387..12b62721 100644 --- a/things/tracing/doc.go +++ b/things/tracing/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package tracing contains middlewares that will add spans // to existing traces. diff --git a/things/tracing/things.go b/things/tracing/things.go index c45bb56f..2b6892dc 100644 --- a/things/tracing/things.go +++ b/things/tracing/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package tracing diff --git a/things/users/users.go b/things/users/users.go index 622151ca..ba9b419e 100644 --- a/things/users/users.go +++ b/things/users/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package users contains implementation for users service in // single user scenario. diff --git a/things/users/users_test.go b/things/users/users_test.go index 56e54060..cf575d6f 100644 --- a/things/users/users_test.go +++ b/things/users/users_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users_test diff --git a/things/uuid/idp.go b/things/uuid/idp.go index 1d5c4d1e..5c7e3fbc 100644 --- a/things/uuid/idp.go +++ b/things/uuid/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package uuid provides a UUID identity provider. package uuid diff --git a/topics.go b/topics.go index bf755a74..0184f57c 100644 --- a/topics.go +++ b/topics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mainflux diff --git a/ui/css/mainflux.css b/ui/css/mainflux.css index 443157b4..a26eb04f 100644 --- a/ui/css/mainflux.css +++ b/ui/css/mainflux.css @@ -1,16 +1,22 @@ -/* Copyright (c) 2019 - Mainflux - SPDX-License-Identifier: Apache-2.0 */ +/* + * Copyright (c) Mainflux + * SPDX-License-Identifier: Apache-2.0 + */ @import url('https://fonts.googleapis.com/css?family=Roboto'); @import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,800'); - + .btn-primary { color: #fff; background-color: #113f67; border-color: #113f67; } -.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open>.dropdown-toggle.btn-primary { + +.btn-primary:hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.open>.dropdown-toggle.btn-primary { color: #fff; background-color: #408ab4; border-color: #408ab4; @@ -21,17 +27,23 @@ background-color: #408ab4; border-color: #408ab4; } -.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active, .open>.dropdown-toggle.btn-secondary { + +.btn-secondary:hover, +.btn-secondary:focus, +.btn-secondary:active, +.btn-secondary.active, +.open>.dropdown-toggle.btn-secondary { color: #fff; background-color: #113f67; border-color: #113f67; } - + body { background-color: #f3f3f4 !important; font-family: 'Montserrat', sans-serif !important; } -.title{ + +.title { font-family: 'Montserrat', sans-serif; font-weight: 800; transform: scaleY(0.95); @@ -39,24 +51,24 @@ body { margin: 1rem 0; } -.page-link{ +.page-link { color: #113f67; } .page-item.active .page-link { background-color: #408ab4; - border-color: #408ab4; + border-color: #408ab4; } -ul.nav a:hover { - color: #fff !important; - background-color: #408ab4 !important; +ul.nav a:hover { + color: #fff !important; + background-color: #408ab4 !important; cursor: pointer; - transition: color .15s ease-in-out,background-color .15s ease-in-out; + transition: color .15s ease-in-out, background-color .15s ease-in-out; border-radius: 0; } -.nav-pills .nav-link.active{ +.nav-pills .nav-link.active { background-color: #408ab4 !important; border-radius: 0; } @@ -88,9 +100,9 @@ ul.nav a:hover { border-top: none; } -.table-hover tbody tr:hover > td { +.table-hover tbody tr:hover>td { cursor: pointer; - background:#408ab4; + background: #408ab4; color: white; } diff --git a/ui/docker/Dockerfile b/ui/docker/Dockerfile index 9e17dcbb..58c20edb 100644 --- a/ui/docker/Dockerfile +++ b/ui/docker/Dockerfile @@ -1,5 +1,5 @@ ### -# Copyright (c) 2015-2019 Mainflux +# Copyright (c) Mainflux # # Mainflux is licensed under an Apache license, version 2.0 license. # All rights not explicitly granted in the Apache license, version 2.0 are reserved. diff --git a/ui/docker/Dockerfile.arm b/ui/docker/Dockerfile.arm index f8ed8f34..d3ed95b7 100644 --- a/ui/docker/Dockerfile.arm +++ b/ui/docker/Dockerfile.arm @@ -1,5 +1,5 @@ ### -# Copyright (c) 2015-2019 Mainflux +# Copyright (c) Mainflux # # Mainflux is licensed under an Apache license, version 2.0 license. # All rights not explicitly granted in the Apache license, version 2.0 are reserved. diff --git a/ui/src/Channel.elm b/ui/src/Channel.elm index beed9442..82d5054f 100644 --- a/ui/src/Channel.elm +++ b/ui/src/Channel.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux-- -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Connection.elm b/ui/src/Connection.elm index 1e1d9d28..1dad7c26 100644 --- a/ui/src/Connection.elm +++ b/ui/src/Connection.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Env.elm b/ui/src/Env.elm index 56ac13c7..1d30d779 100644 --- a/ui/src/Env.elm +++ b/ui/src/Env.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Error.elm b/ui/src/Error.elm index f92e526a..4a16899e 100644 --- a/ui/src/Error.elm +++ b/ui/src/Error.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Helpers.elm b/ui/src/Helpers.elm index d74e0929..dd66cb63 100644 --- a/ui/src/Helpers.elm +++ b/ui/src/Helpers.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/HttpMF.elm b/ui/src/HttpMF.elm index 097208aa..79d798bc 100644 --- a/ui/src/HttpMF.elm +++ b/ui/src/HttpMF.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/JsonMF.elm b/ui/src/JsonMF.elm index ab510ddd..c9efea16 100644 --- a/ui/src/JsonMF.elm +++ b/ui/src/JsonMF.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Main.elm b/ui/src/Main.elm index dde4add8..66bfe7f1 100644 --- a/ui/src/Main.elm +++ b/ui/src/Main.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Message.elm b/ui/src/Message.elm index 945dadbc..25c74c96 100644 --- a/ui/src/Message.elm +++ b/ui/src/Message.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/ModalMF.elm b/ui/src/ModalMF.elm index e8736e87..678e538e 100644 --- a/ui/src/ModalMF.elm +++ b/ui/src/ModalMF.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Ports.elm b/ui/src/Ports.elm index 8b7e92ac..ce794236 100644 --- a/ui/src/Ports.elm +++ b/ui/src/Ports.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Thing.elm b/ui/src/Thing.elm index 21bb57fd..710481a4 100644 --- a/ui/src/Thing.elm +++ b/ui/src/Thing.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/User.elm b/ui/src/User.elm index 1d3e40fa..fa74ad02 100644 --- a/ui/src/User.elm +++ b/ui/src/User.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/ui/src/Version.elm b/ui/src/Version.elm index 26958621..0feafcf9 100644 --- a/ui/src/Version.elm +++ b/ui/src/Version.elm @@ -1,6 +1,4 @@ --- Copyright (c) 2019 --- Mainflux --- +-- Copyright (c) Mainflux -- SPDX-License-Identifier: Apache-2.0 diff --git a/users/api/doc.go b/users/api/doc.go index a7449398..fb3127e4 100644 --- a/users/api/doc.go +++ b/users/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains API-related concerns: endpoint definitions, middlewares // and all resource representations. diff --git a/users/api/grpc/client.go b/users/api/grpc/client.go index 0b6a7407..d565cdc1 100644 --- a/users/api/grpc/client.go +++ b/users/api/grpc/client.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/users/api/grpc/doc.go b/users/api/grpc/doc.go index 436a0fd6..03b429ea 100644 --- a/users/api/grpc/doc.go +++ b/users/api/grpc/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package grpc contains implementation of users service gRPC API. package grpc diff --git a/users/api/grpc/endpoint.go b/users/api/grpc/endpoint.go index 4e2f75df..c0873da5 100644 --- a/users/api/grpc/endpoint.go +++ b/users/api/grpc/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/users/api/grpc/endpoint_test.go b/users/api/grpc/endpoint_test.go index eabba540..29f732c7 100644 --- a/users/api/grpc/endpoint_test.go +++ b/users/api/grpc/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc_test diff --git a/users/api/grpc/requests.go b/users/api/grpc/requests.go index 219ad7cd..6f4ab251 100644 --- a/users/api/grpc/requests.go +++ b/users/api/grpc/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/users/api/grpc/responses.go b/users/api/grpc/responses.go index d38f1257..d128cbe2 100644 --- a/users/api/grpc/responses.go +++ b/users/api/grpc/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/users/api/grpc/server.go b/users/api/grpc/server.go index 43b6d64d..8e6d73d4 100644 --- a/users/api/grpc/server.go +++ b/users/api/grpc/server.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc diff --git a/users/api/grpc/setup_test.go b/users/api/grpc/setup_test.go index 91e84cad..0af08379 100644 --- a/users/api/grpc/setup_test.go +++ b/users/api/grpc/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package grpc_test diff --git a/users/api/http/doc.go b/users/api/http/doc.go index 87521a8a..d6735e60 100644 --- a/users/api/http/doc.go +++ b/users/api/http/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package http contains implementation of users service HTTP API. package http diff --git a/users/api/http/endpoint.go b/users/api/http/endpoint.go index 4dda9267..6da553a1 100644 --- a/users/api/http/endpoint.go +++ b/users/api/http/endpoint.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/users/api/http/endpoint_test.go b/users/api/http/endpoint_test.go index e9943f2b..5b2fa834 100644 --- a/users/api/http/endpoint_test.go +++ b/users/api/http/endpoint_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http_test diff --git a/users/api/http/requests.go b/users/api/http/requests.go index 342c96da..3e2010af 100644 --- a/users/api/http/requests.go +++ b/users/api/http/requests.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/users/api/http/responses.go b/users/api/http/responses.go index f7516dea..d20fe826 100644 --- a/users/api/http/responses.go +++ b/users/api/http/responses.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/users/api/http/transport.go b/users/api/http/transport.go index 398cfe8e..c5d9389e 100644 --- a/users/api/http/transport.go +++ b/users/api/http/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package http diff --git a/users/api/logging.go b/users/api/logging.go index 423f5d90..531f5c54 100644 --- a/users/api/logging.go +++ b/users/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/users/api/metrics.go b/users/api/metrics.go index 4777196e..2081542f 100644 --- a/users/api/metrics.go +++ b/users/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/users/bcrypt/hasher.go b/users/bcrypt/hasher.go index b4ab649e..90f110fc 100644 --- a/users/bcrypt/hasher.go +++ b/users/bcrypt/hasher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package bcrypt provides a hasher implementation utilising bcrypt. package bcrypt diff --git a/users/hasher.go b/users/hasher.go index 70a25d1d..cafb6b0d 100644 --- a/users/hasher.go +++ b/users/hasher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users diff --git a/users/idp.go b/users/idp.go index ef01ca62..0a82a901 100644 --- a/users/idp.go +++ b/users/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users diff --git a/users/jwt/idp.go b/users/jwt/idp.go index 850dfd23..c88f86c2 100644 --- a/users/jwt/idp.go +++ b/users/jwt/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package jwt provides a JWT identity provider. package jwt diff --git a/users/mocks/hasher.go b/users/mocks/hasher.go index d9838f16..1c4cafa1 100644 --- a/users/mocks/hasher.go +++ b/users/mocks/hasher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/users/mocks/idp.go b/users/mocks/idp.go index 33a84f15..ee5cc26b 100644 --- a/users/mocks/idp.go +++ b/users/mocks/idp.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/users/mocks/users.go b/users/mocks/users.go index 6556020b..f30191cb 100644 --- a/users/mocks/users.go +++ b/users/mocks/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/users/postgres/doc.go b/users/postgres/doc.go index 8d61596c..522b9a7a 100644 --- a/users/postgres/doc.go +++ b/users/postgres/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres contains repository implementations using PostgreSQL as // the underlying database. diff --git a/users/postgres/init.go b/users/postgres/init.go index daa1f071..bbcc942a 100644 --- a/users/postgres/init.go +++ b/users/postgres/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/users/postgres/setup_test.go b/users/postgres/setup_test.go index c03b1547..762ad40b 100644 --- a/users/postgres/setup_test.go +++ b/users/postgres/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres_test contains tests for PostgreSQL repository // implementations. diff --git a/users/postgres/users.go b/users/postgres/users.go index 42ff620b..da0beddb 100644 --- a/users/postgres/users.go +++ b/users/postgres/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/users/postgres/users_test.go b/users/postgres/users_test.go index f997dc2c..a537e1ec 100644 --- a/users/postgres/users_test.go +++ b/users/postgres/users_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/users/service.go b/users/service.go index ba9d2872..e571ec1b 100644 --- a/users/service.go +++ b/users/service.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users diff --git a/users/service_test.go b/users/service_test.go index 172b2f59..4f688290 100644 --- a/users/service_test.go +++ b/users/service_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users_test diff --git a/users/tracing/users.go b/users/tracing/users.go index a1483e7e..e178ab15 100644 --- a/users/tracing/users.go +++ b/users/tracing/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package tracing contains middlewares that will add spans // to existing traces. diff --git a/users/users.go b/users/users.go index e1b4c9f3..27ac526c 100644 --- a/users/users.go +++ b/users/users.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users diff --git a/users/users_test.go b/users/users_test.go index 44b28576..a3755d0f 100644 --- a/users/users_test.go +++ b/users/users_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package users_test diff --git a/version.go b/version.go index cae0dbbe..fe9a147e 100644 --- a/version.go +++ b/version.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mainflux diff --git a/writers/api/logging.go b/writers/api/logging.go index 15a5e5ff..435cca35 100644 --- a/writers/api/logging.go +++ b/writers/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/writers/api/metrics.go b/writers/api/metrics.go index dd1c0478..b247fd92 100644 --- a/writers/api/metrics.go +++ b/writers/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/writers/api/transport.go b/writers/api/transport.go index 0a04d699..df5915e5 100644 --- a/writers/api/transport.go +++ b/writers/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/writers/cassandra/doc.go b/writers/cassandra/doc.go index 2743e577..ad24ece6 100644 --- a/writers/cassandra/doc.go +++ b/writers/cassandra/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package cassandra contains the domain concept definitions needed to // support Mainflux Cassandra writer service. diff --git a/writers/cassandra/init.go b/writers/cassandra/init.go index 76618f7e..d0bfda7f 100644 --- a/writers/cassandra/init.go +++ b/writers/cassandra/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra diff --git a/writers/cassandra/messages.go b/writers/cassandra/messages.go index 447ffd1f..0ea30521 100644 --- a/writers/cassandra/messages.go +++ b/writers/cassandra/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra diff --git a/writers/cassandra/messages_test.go b/writers/cassandra/messages_test.go index 66215e5c..d3cd5809 100644 --- a/writers/cassandra/messages_test.go +++ b/writers/cassandra/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra_test diff --git a/writers/cassandra/setup_test.go b/writers/cassandra/setup_test.go index addf51af..c01bcc6a 100644 --- a/writers/cassandra/setup_test.go +++ b/writers/cassandra/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package cassandra_test diff --git a/writers/docs.go b/writers/docs.go index 78322398..b8ebbbfc 100644 --- a/writers/docs.go +++ b/writers/docs.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package writers contain the domain concept definitions needed to // support Mainflux writer services functionality. diff --git a/writers/influxdb/doc.go b/writers/influxdb/doc.go index 5e5d0edc..2b8f0b63 100644 --- a/writers/influxdb/doc.go +++ b/writers/influxdb/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package influxdb contains the domain concept definitions needed to // support Mainflux InfluxDB writer service functionality. diff --git a/writers/influxdb/messages.go b/writers/influxdb/messages.go index 746b0187..17d4cdfe 100644 --- a/writers/influxdb/messages.go +++ b/writers/influxdb/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package influxdb diff --git a/writers/influxdb/messages_test.go b/writers/influxdb/messages_test.go index 9cda8086..726c62da 100644 --- a/writers/influxdb/messages_test.go +++ b/writers/influxdb/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package influxdb_test diff --git a/writers/influxdb/setup_test.go b/writers/influxdb/setup_test.go index 117fde0f..041d1b31 100644 --- a/writers/influxdb/setup_test.go +++ b/writers/influxdb/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package influxdb_test diff --git a/writers/messages.go b/writers/messages.go index 3e322a93..43e3039f 100644 --- a/writers/messages.go +++ b/writers/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package writers diff --git a/writers/mongodb/doc.go b/writers/mongodb/doc.go index d7fd0904..0714b096 100644 --- a/writers/mongodb/doc.go +++ b/writers/mongodb/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package mongodb contains the domain concept definitions needed to // support Mainflux MondoDB writer service functionality. diff --git a/writers/mongodb/messages.go b/writers/mongodb/messages.go index 028f4b30..eb3c476f 100644 --- a/writers/mongodb/messages.go +++ b/writers/mongodb/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb diff --git a/writers/mongodb/messages_test.go b/writers/mongodb/messages_test.go index e8f8eeed..616c6c4a 100644 --- a/writers/mongodb/messages_test.go +++ b/writers/mongodb/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb_test diff --git a/writers/mongodb/setup_test.go b/writers/mongodb/setup_test.go index aecc353f..5a06ef06 100644 --- a/writers/mongodb/setup_test.go +++ b/writers/mongodb/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mongodb_test diff --git a/writers/postgres/doc.go b/writers/postgres/doc.go index 2a5bf89e..7f34977b 100644 --- a/writers/postgres/doc.go +++ b/writers/postgres/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres contains repository implementations using Postgres as // the underlying database. diff --git a/writers/postgres/init.go b/writers/postgres/init.go index b40a49bf..490397fd 100644 --- a/writers/postgres/init.go +++ b/writers/postgres/init.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/writers/postgres/messages.go b/writers/postgres/messages.go index 30b692fc..45515614 100644 --- a/writers/postgres/messages.go +++ b/writers/postgres/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres diff --git a/writers/postgres/messages_test.go b/writers/postgres/messages_test.go index d54796ac..f7223613 100644 --- a/writers/postgres/messages_test.go +++ b/writers/postgres/messages_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package postgres_test diff --git a/writers/postgres/setup_test.go b/writers/postgres/setup_test.go index 809c16c5..ebebc451 100644 --- a/writers/postgres/setup_test.go +++ b/writers/postgres/setup_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2019 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package postgres_test contains tests for PostgreSQL repository // implementations. diff --git a/writers/writer.go b/writers/writer.go index 8ce8fc30..af6619f0 100644 --- a/writers/writer.go +++ b/writers/writer.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package writers diff --git a/ws/adapter.go b/ws/adapter.go index 185aed2f..cfaeb24b 100644 --- a/ws/adapter.go +++ b/ws/adapter.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package ws contains the domain concept definitions needed to support // Mainflux ws adapter service functionality. diff --git a/ws/adapter_test.go b/ws/adapter_test.go index a3beff7c..38a0be6f 100644 --- a/ws/adapter_test.go +++ b/ws/adapter_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package ws_test diff --git a/ws/api/doc.go b/ws/api/doc.go index a7449398..fb3127e4 100644 --- a/ws/api/doc.go +++ b/ws/api/doc.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package api contains API-related concerns: endpoint definitions, middlewares // and all resource representations. diff --git a/ws/api/logging.go b/ws/api/logging.go index a003c974..876129e8 100644 --- a/ws/api/logging.go +++ b/ws/api/logging.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/ws/api/metrics.go b/ws/api/metrics.go index 1d9343ac..cf6eb8c6 100644 --- a/ws/api/metrics.go +++ b/ws/api/metrics.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // +build !test diff --git a/ws/api/transport.go b/ws/api/transport.go index 9a315442..b26fbd04 100644 --- a/ws/api/transport.go +++ b/ws/api/transport.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api diff --git a/ws/api/transport_test.go b/ws/api/transport_test.go index 34f2a81f..da08e994 100644 --- a/ws/api/transport_test.go +++ b/ws/api/transport_test.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package api_test diff --git a/ws/mocks/messages.go b/ws/mocks/messages.go index 69686387..dde96a96 100644 --- a/ws/mocks/messages.go +++ b/ws/mocks/messages.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/ws/mocks/things.go b/ws/mocks/things.go index 9e1e9661..55a40e08 100644 --- a/ws/mocks/things.go +++ b/ws/mocks/things.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// package mocks diff --git a/ws/nats/publisher.go b/ws/nats/publisher.go index e654d5d4..3dad884b 100644 --- a/ws/nats/publisher.go +++ b/ws/nats/publisher.go @@ -1,9 +1,5 @@ -// -// Copyright (c) 2018 -// Mainflux -// +// Copyright (c) Mainflux // SPDX-License-Identifier: Apache-2.0 -// // Package nats contains NATS message publisher implementation. package nats