Skip to content

Commit

Permalink
Move contract/inter to inter
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed May 11, 2022
1 parent cd148f6 commit 4a98a3e
Show file tree
Hide file tree
Showing 143 changed files with 115 additions and 273 deletions.
16 changes: 0 additions & 16 deletions contract/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions contract/LICENSE

This file was deleted.

9 changes: 0 additions & 9 deletions contract/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions foundation/.gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions foundation/LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion foundation/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package foundation
import (
"fmt"
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/foundation/db"
"github.com/confetti-framework/framework/foundation/loggers"
"github.com/confetti-framework/framework/inter"
)

type Application struct {
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/app_info.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package console

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"runtime"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/console/app_serve.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package console

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/foundation/http"
"github.com/confetti-framework/framework/inter"
net "net/http"
"strconv"
"time"
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/baker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package console

import (
"github.com/confetti-framework/baker"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"os"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/console/facade/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package facade

import (
"fmt"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/manifoldco/promptui"
"github.com/schollz/progressbar/v3"
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/foundation_commands.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package console

import "github.com/confetti-framework/framework/contract/inter"
import "github.com/confetti-framework/framework/inter"

var FoundationCommands = []inter.Command{
AppInfo{},
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package console

import (
"flag"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/foundation/console/facade"
"github.com/confetti-framework/framework/foundation/console/flag_type"
"github.com/confetti-framework/framework/foundation/console/service"
"github.com/confetti-framework/framework/inter"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/console/log_clear.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package console

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type LogClear struct{}
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/route_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"runtime"
"strings"

"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/jedib0t/go-pretty/v6/table"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/console/service/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package service
import (
"flag"
"fmt"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"reflect"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/service/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package service

import (
"flag"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/foundation/console/flag_type"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/support"
"reflect"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/service/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package service

import (
"fmt"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/support"
"github.com/jedib0t/go-pretty/v6/table"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/console/service/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strings"

"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/jedib0t/go-pretty/v6/table"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package foundation

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/support"
"reflect"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/db/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"database/sql"
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/support"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/container_decorator/bootstrap.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package container_decorator

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type Handler struct {
Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/response_decorator/decorate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package response_decorator

import "github.com/confetti-framework/framework/contract/inter"
import "github.com/confetti-framework/framework/inter"

type Handler struct {
Decorators []inter.ResponseDecorator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package response_decorator

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
net "net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/response_decorator/http_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package response_decorator

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type HttpStatus struct {
Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/response_decorator/log_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package response_decorator

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type LogError struct{}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package route_decorator

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/route_decorator/decorate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package route_decorator

import "github.com/confetti-framework/framework/contract/inter"
import "github.com/confetti-framework/framework/inter"

func Decorate(route inter.Route, decorators []inter.RouteDecorator) inter.Route {
for _, decorator := range decorators {
Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/route_decorator/optional_parameter.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package route_decorator

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"regexp"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/route_decorator/optional_slash.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package route_decorator

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/decorator/route_decorator/prefix_uri_slash.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package route_decorator

import (
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/encode_through.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/errors_to_html.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package encoder
import (
"fmt"
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/foundation/http/view_helper"
"github.com/confetti-framework/framework/support/str"
)
Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/errors_to_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/confetti-framework/framework/support/str"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/html_reader_to_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package encoder
import (
"fmt"
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/interface_to_html.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"github.com/spf13/cast"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/interface_to_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"encoding/json"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type InterfaceToJson struct{}
Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/json_reader_to_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"reflect"
)

Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/json_to_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"encoding/json"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
)

type JsonToJson struct{}
Expand Down
2 changes: 1 addition & 1 deletion foundation/encoder/raw_to_html.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package encoder

import (
"github.com/confetti-framework/errors"
"github.com/confetti-framework/framework/contract/inter"
"github.com/confetti-framework/framework/inter"
"reflect"
)

Expand Down
Loading

0 comments on commit 4a98a3e

Please sign in to comment.