Browse Source

Logging and errors projects were rehomed.

template-theme-rewrite
Benjamin Shelton 1 year ago
parent
commit
057d31a9a4
28 changed files with 32 additions and 32 deletions
  1. +1
    -1
      application.go
  2. +1
    -1
      auth/types.go
  3. +1
    -1
      cmd/demos/main.go
  4. +1
    -1
      config/options.go
  5. +1
    -1
      errors/errors.go
  6. +2
    -2
      extension/csrf.go
  7. +1
    -1
      extension/errors.go
  8. +1
    -1
      funcs.go
  9. +2
    -2
      go.mod
  10. +1
    -1
      render/errors.go
  11. +1
    -1
      render/log.go
  12. +2
    -2
      render/pongo2.go
  13. +1
    -1
      route.go
  14. +1
    -1
      session/cookie/cookie.go
  15. +1
    -1
      session/registry/registry.go
  16. +1
    -1
      status/http.go
  17. +1
    -1
      tests/custom_base_route_test.go
  18. +1
    -1
      tests/index_endpoint_test.go
  19. +1
    -1
      tests/method_endpoint_test.go
  20. +1
    -1
      tests/method_path_override_test.go
  21. +1
    -1
      tests/params_test.go
  22. +1
    -1
      tests/redirection_test.go
  23. +1
    -1
      tests/reserved_names_test.go
  24. +2
    -2
      urls.go
  25. +1
    -1
      utils/forms.go
  26. +1
    -1
      utils/forms_test.go
  27. +1
    -1
      vfs/collection.go
  28. +1
    -1
      vfs/collection_test.go

+ 1
- 1
application.go View File

@ -7,13 +7,13 @@ import (
"strings"
"sync"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan/config"
. "git.pluggableideas.com/destrealm/go/capstan/errors"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"git.pluggableideas.com/destrealm/go/capstan/render"
"git.pluggableideas.com/destrealm/go/capstan/session"
"github.com/go-chi/chi/middleware"
"gitlab.com/destrealm/go/logging"
)
type Application struct {


+ 1
- 1
auth/types.go View File

@ -7,11 +7,11 @@ import (
"net/http"
"time"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/config"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"git.pluggableideas.com/destrealm/go/principal-auth"
"gitlab.com/destrealm/go/errors"
)
// ErrInvalidContext is raised whenever an appropriate context cannot be read


+ 1
- 1
cmd/demos/main.go View File

@ -6,6 +6,7 @@ import (
"net"
"net/http"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/config"
"git.pluggableideas.com/destrealm/go/capstan/extension"
@ -14,7 +15,6 @@ import (
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/capstan/utils"
"github.com/flosch/pongo2"
"gitlab.com/destrealm/go/logging"
)
type Dependency struct {


+ 1
- 1
config/options.go View File

@ -5,7 +5,7 @@ import (
"net/http"
"time"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/logging"
)
type SessionBackend int


+ 1
- 1
errors/errors.go View File

@ -1,7 +1,7 @@
package errors
import (
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
// ErrInvalidHost is returned if an invalid host or host name is supplied to


+ 2
- 2
extension/csrf.go View File

@ -9,12 +9,12 @@ import (
"net/http"
"time"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan"
. "git.pluggableideas.com/destrealm/go/capstan/errors"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
)
type CSRFVerifier interface {


+ 1
- 1
extension/errors.go View File

@ -1,7 +1,7 @@
package extension
import (
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
var ErrCSRFInvalidTokenBytes = errors.NewError("invalid token bytes")

+ 1
- 1
funcs.go View File

@ -7,9 +7,9 @@ import (
"strconv"
"strings"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan/mappers"
"github.com/go-chi/chi"
"gitlab.com/destrealm/go/logging"
)
// DependencyMapper is a convenience function for creating new dependency


+ 2
- 2
go.mod View File

@ -3,6 +3,8 @@ module git.pluggableideas.com/destrealm/go/capstan
go 1.12
require (
git.destrealm.org/go/errors v0.0.0-20200222072452-ca11c73fd578
git.destrealm.org/go/logging v0.0.0-20200222072222-24b01426c1a8
git.pluggableideas.com/destrealm/go/keystar v0.0.0-20200217074604-c37775606ae4
git.pluggableideas.com/destrealm/go/please v0.0.0-20200213102504-f48625fd1d83
git.pluggableideas.com/destrealm/go/principal-auth v0.0.0-20200125100027-5bdab82b760b
@ -13,8 +15,6 @@ require (
github.com/gorilla/websocket v1.4.1
github.com/urfave/cli/v2 v2.1.1
github.com/valyala/fasttemplate v1.0.1
gitlab.com/destrealm/go/errors v0.0.0-20191103041055-f29f841ea456
gitlab.com/destrealm/go/logging v0.0.0-20200127081609-311e59b9d313
golang.org/x/sys v0.0.0-20191118133127-cf1e2d577169
golang.org/x/tools v0.0.0-20191118215350-3d1ebf6f5a7d
)

+ 1
- 1
render/errors.go View File

@ -1,7 +1,7 @@
package render
import (
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
// ErrNoTemplateInitializer is returned by backends that require the existence


+ 1
- 1
render/log.go View File

@ -3,7 +3,7 @@ package render
import (
"io"
"gitlab.com/destrealm/go/logging"
"git.destrealm.org/go/logging"
)
type BasicLogRenderer struct {


+ 2
- 2
render/pongo2.go View File

@ -9,12 +9,12 @@ import (
"path/filepath"
"strings"
"git.destrealm.org/go/errors"
"git.destrealm.org/go/logging"
. "git.pluggableideas.com/destrealm/go/capstan/errors"
"git.pluggableideas.com/destrealm/go/vfs"
"github.com/flosch/pongo2"
"github.com/fsnotify/fsnotify"
"gitlab.com/destrealm/go/errors"
"gitlab.com/destrealm/go/logging"
)
type MapValues = pongo2.Context


+ 1
- 1
route.go View File

@ -7,11 +7,11 @@ import (
"strings"
"time"
"git.destrealm.org/go/errors"
ce "git.pluggableideas.com/destrealm/go/capstan/errors"
"git.pluggableideas.com/destrealm/go/capstan/render"
"git.pluggableideas.com/destrealm/go/capstan/status"
"github.com/gorilla/websocket"
"gitlab.com/destrealm/go/errors"
)
// Route descriptor ultimately used for constructing chi routes. This


+ 1
- 1
session/cookie/cookie.go View File

@ -8,11 +8,11 @@ import (
"net/http"
"sync"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan/config"
"git.pluggableideas.com/destrealm/go/capstan/session/api"
"git.pluggableideas.com/destrealm/go/capstan/session/registry"
"git.pluggableideas.com/destrealm/go/keystar/crypto"
"gitlab.com/destrealm/go/errors"
)
func init() {


+ 1
- 1
session/registry/registry.go View File

@ -4,9 +4,9 @@ import (
"net/http"
"sync"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan/config"
"git.pluggableideas.com/destrealm/go/capstan/session/api"
"gitlab.com/destrealm/go/logging"
)
var backends = struct {


+ 1
- 1
status/http.go View File

@ -3,7 +3,7 @@ package status
import (
"net/http"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
// Code returns a pre-configured error with a message matching that of the HTTP


+ 1
- 1
tests/custom_base_route_test.go View File

@ -12,9 +12,9 @@ import (
"net/http"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type CustomBaseRouteController struct {


+ 1
- 1
tests/index_endpoint_test.go View File

@ -14,9 +14,9 @@ import (
"bytes"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type IndexController struct {


+ 1
- 1
tests/method_endpoint_test.go View File

@ -13,9 +13,9 @@ import (
"bytes"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type MethodEndpointController struct {


+ 1
- 1
tests/method_path_override_test.go View File

@ -15,9 +15,9 @@ import (
"net/http"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type MethodOverrideController struct {


+ 1
- 1
tests/params_test.go View File

@ -13,9 +13,9 @@ import (
"net/http"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type ParamsController struct {


+ 1
- 1
tests/redirection_test.go View File

@ -23,10 +23,10 @@ import (
"strings"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/capstan/status"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
// ExternalRedirectController tests redirections, both local and external. In


+ 1
- 1
tests/reserved_names_test.go View File

@ -16,9 +16,9 @@ import (
"bytes"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan"
"git.pluggableideas.com/destrealm/go/please"
"gitlab.com/destrealm/go/errors"
)
type ReservedController struct {


+ 2
- 2
urls.go View File

@ -5,8 +5,8 @@ import (
pth "path"
"sync"
"git.destrealm.org/go/logging"
"git.pluggableideas.com/destrealm/go/capstan/config"
"gitlab.com/destrealm/go/logging"
)
type URLMapper struct {
@ -78,7 +78,7 @@ type URLBuilder struct {
Scheme string
Host string
path string
asset string
asset string
query url.Values
mapper *URLMapper
}


+ 1
- 1
utils/forms.go View File

@ -6,7 +6,7 @@ import (
"strconv"
"time"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
)
var ErrInvalidType = errors.NewError("invalid type")


+ 1
- 1
utils/forms_test.go View File

@ -4,8 +4,8 @@ import (
"net/url"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan/utils"
"gitlab.com/destrealm/go/errors"
)
type TestData struct {


+ 1
- 1
vfs/collection.go View File

@ -3,7 +3,7 @@ package vfs
import (
"os"
"gitlab.com/destrealm/go/errors"
"git.destrealm.org/go/errors"
"golang.org/x/tools/godoc/vfs"
)


+ 1
- 1
vfs/collection_test.go View File

@ -5,8 +5,8 @@ import (
"io/ioutil"
"testing"
"git.destrealm.org/go/errors"
"git.pluggableideas.com/destrealm/go/capstan/vfs"
"gitlab.com/destrealm/go/errors"
)
var fixturesFS = map[string][]byte{


Loading…
Cancel
Save