Skip to content

Commit 00f8ea4

Browse files
authored
refactor: move packages under internal (#144)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 6d414ad commit 00f8ea4

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

cmd/tx-submit-api-mirror/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Blink Labs Software
1+
// Copyright 2024 Blink Labs Software
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -21,9 +21,9 @@ import (
2121

2222
"go.uber.org/automaxprocs/maxprocs"
2323

24-
"github.com/blinklabs-io/tx-submit-api-mirror/api"
25-
"github.com/blinklabs-io/tx-submit-api-mirror/config"
26-
"github.com/blinklabs-io/tx-submit-api-mirror/logging"
24+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/api"
25+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
26+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
2727
)
2828

2929
var cmdlineFlags struct {

api/api.go renamed to internal/api/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Blink Labs Software
1+
// Copyright 2024 Blink Labs Software
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -30,8 +30,8 @@ import (
3030
ginzap "github.com/gin-contrib/zap"
3131
"github.com/gin-gonic/gin"
3232

33-
"github.com/blinklabs-io/tx-submit-api-mirror/config"
34-
"github.com/blinklabs-io/tx-submit-api-mirror/logging"
33+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
34+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
3535
)
3636

3737
func Start(cfg *config.Config) error {

api/api_test.go renamed to internal/api/api_test.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2024 Blink Labs Software
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package api
216

317
import (
@@ -6,7 +20,7 @@ import (
620
"testing"
721
"time"
822

9-
"github.com/blinklabs-io/tx-submit-api-mirror/config"
23+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
1024
)
1125

1226
func TestHTTPClientTimeout(t *testing.T) {

config/config.go renamed to internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Blink Labs Software
1+
// Copyright 2024 Blink Labs Software
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

logging/logging.go renamed to internal/logging/logging.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 Blink Labs Software
1+
// Copyright 2024 Blink Labs Software
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import (
2121
"go.uber.org/zap"
2222
"go.uber.org/zap/zapcore"
2323

24-
"github.com/blinklabs-io/tx-submit-api-mirror/config"
24+
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
2525
)
2626

2727
type Logger = zap.SugaredLogger

0 commit comments

Comments
 (0)