Skip to content

Commit

Permalink
refactor: move packages under internal
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 committed Oct 4, 2024
1 parent f2e2aaa commit bc045e4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 11 deletions.
8 changes: 4 additions & 4 deletions cmd/tx-submit-api-mirror/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Blink Labs Software
// Copyright 2024 Blink Labs Software
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,9 +21,9 @@ import (

_ "go.uber.org/automaxprocs"

"github.com/blinklabs-io/tx-submit-api-mirror/api"
"github.com/blinklabs-io/tx-submit-api-mirror/config"
"github.com/blinklabs-io/tx-submit-api-mirror/logging"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/api"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
)

var cmdlineFlags struct {
Expand Down
6 changes: 3 additions & 3 deletions api/api.go → internal/api/api.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Blink Labs Software
// Copyright 2024 Blink Labs Software
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,8 +30,8 @@ import (
ginzap "github.com/gin-contrib/zap"
"github.com/gin-gonic/gin"

"github.com/blinklabs-io/tx-submit-api-mirror/config"
"github.com/blinklabs-io/tx-submit-api-mirror/logging"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/logging"
)

func Start(cfg *config.Config) error {
Expand Down
16 changes: 15 additions & 1 deletion api/api_test.go → internal/api/api_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2024 Blink Labs Software
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package api

import (
Expand All @@ -6,7 +20,7 @@ import (
"testing"
"time"

"github.com/blinklabs-io/tx-submit-api-mirror/config"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
)

func TestHTTPClientTimeout(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/config.go → internal/config/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Blink Labs Software
// Copyright 2024 Blink Labs Software
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions logging/logging.go → internal/logging/logging.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Blink Labs Software
// Copyright 2024 Blink Labs Software
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,7 +21,7 @@ import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

"github.com/blinklabs-io/tx-submit-api-mirror/config"
"github.com/blinklabs-io/tx-submit-api-mirror/internal/config"
)

type Logger = zap.SugaredLogger
Expand Down

0 comments on commit bc045e4

Please sign in to comment.