Move internal references to new source hosting
Some checks failed
/ golint (push) Failing after 3m50s

This commit is contained in:
Eli Ribble 2026-05-19 15:33:57 +00:00
parent 8c8e360bf6
commit 7237f5f666
No known key found for this signature in database
239 changed files with 771 additions and 775 deletions

View file

@ -4,11 +4,11 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/file"
"github.com/google/uuid"
"github.com/gorilla/mux"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/file"
)
func Avatar(r *router) *avatarR {

View file

@ -7,10 +7,10 @@ import (
"strconv"
"time"
modelpublic "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/public/model"
modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
modelpublic "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/public/model"
modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/rs/zerolog/log"
)

View file

@ -5,13 +5,13 @@ import (
"fmt"
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/db"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/db"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/models"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
func ComplianceRequest(r *router) *complianceRequestR {

View file

@ -4,9 +4,9 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/rs/zerolog/log"
)

View file

@ -5,10 +5,10 @@ import (
"fmt"
"strconv"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/gorilla/mux"
"net/http"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/rs/zerolog/log"
)

View file

@ -4,10 +4,10 @@ import (
"context"
"net/http"
//modelpublic "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/public/model"
//modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
//modelpublic "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/public/model"
//modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/gorilla/mux"
//"github.com/rs/zerolog/log"
)

View file

@ -4,10 +4,10 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
ngeocode "github.com/Gleipnir-Technology/nidus-sync/platform/geocode"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"github.com/gorilla/mux"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
ngeocode "source.gleipnir.technology/Gleipnir/nidus-sync/platform/geocode"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/rs/zerolog/log"
"github.com/uber/h3-go/v4"
)

View file

@ -4,11 +4,11 @@ import (
"context"
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/auth"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/aarondl/opt/omit"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/auth"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
)
func Impersonation(r *router) *impersonationR {

View file

@ -3,11 +3,11 @@ package resource
import (
"context"
"fmt"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"github.com/gorilla/mux"
"net/http"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/rs/zerolog/log"
)

View file

@ -8,18 +8,18 @@ import (
"time"
/*
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
"github.com/Gleipnir-Technology/nidus-sync/html"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/enums"
"source.gleipnir.technology/Gleipnir/nidus-sync/html"
*/
bobtypes "github.com/Gleipnir-Technology/bob/types"
"github.com/Gleipnir-Technology/nidus-sync/db"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
"source.gleipnir.technology/Gleipnir/nidus-sync/db"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/models"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
/*
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
"github.com/google/uuid"
"github.com/gorilla/mux"
*/

View file

@ -5,9 +5,9 @@ import (
"net/http"
"strconv"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/aarondl/opt/null"
"github.com/gorilla/mux"
)

View file

@ -5,12 +5,12 @@ import (
"fmt"
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/html"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/html"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
type publicreportR struct {

View file

@ -5,20 +5,20 @@ import (
"net/http"
"time"
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
tablepublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/table"
querypublicreport "github.com/Gleipnir-Technology/nidus-sync/db/query/publicreport"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/enums"
modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
tablepublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/table"
querypublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/query/publicreport"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
//"github.com/Gleipnir-Technology/nidus-sync/html"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
//"source.gleipnir.technology/Gleipnir/nidus-sync/html"
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
func PublicReportCompliance(r *router) *complianceR {

View file

@ -2,12 +2,12 @@ package resource
import (
"context"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/text"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"github.com/rs/zerolog/log"
"net/http"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/text"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
type publicreportNotificationR struct {

View file

@ -6,17 +6,17 @@ import (
"slices"
"time"
modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
//tablepublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/table"
//querypublicreport "github.com/Gleipnir-Technology/nidus-sync/db/query/publicreport"
"github.com/Gleipnir-Technology/nidus-sync/html"
"github.com/Gleipnir-Technology/nidus-sync/lint"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
//tablepublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/table"
//querypublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/query/publicreport"
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/html"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/lint"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
func Nuisance(r *router) *nuisanceR {

View file

@ -5,18 +5,18 @@ import (
"net/http"
"time"
modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
//tablepublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/table"
//querypublicreport "github.com/Gleipnir-Technology/nidus-sync/db/query/publicreport"
"github.com/Gleipnir-Technology/nidus-sync/html"
"github.com/Gleipnir-Technology/nidus-sync/lint"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
//tablepublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/table"
//querypublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/query/publicreport"
"github.com/aarondl/opt/omit"
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/html"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/lint"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
func Water(r *router) *waterR {

View file

@ -5,10 +5,10 @@ import (
"net/http"
"strconv"
"github.com/Gleipnir-Technology/nidus-sync/config"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/gorilla/mux"
"github.com/skip2/go-qrcode"
"source.gleipnir.technology/Gleipnir/nidus-sync/config"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
)
type qrcodeR struct {

View file

@ -8,10 +8,10 @@ import (
"github.com/Gleipnir-Technology/bob"
"github.com/Gleipnir-Technology/bob/dialect/psql"
"github.com/Gleipnir-Technology/bob/dialect/psql/sm"
"github.com/Gleipnir-Technology/nidus-sync/db"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"source.gleipnir.technology/Gleipnir/nidus-sync/db"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/aarondl/opt/null"
"github.com/gorilla/mux"
"github.com/stephenafamo/scan"

View file

@ -5,10 +5,10 @@ import (
"net/http"
"strconv"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/google/uuid"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
)
type router struct {

View file

@ -4,9 +4,9 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/aarondl/opt/null"
//"github.com/gorilla/mux"
)

View file

@ -4,12 +4,12 @@ import (
"context"
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/auth"
"github.com/Gleipnir-Technology/nidus-sync/config"
"github.com/Gleipnir-Technology/nidus-sync/html"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
"source.gleipnir.technology/Gleipnir/nidus-sync/auth"
"source.gleipnir.technology/Gleipnir/nidus-sync/config"
"source.gleipnir.technology/Gleipnir/nidus-sync/html"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
)
type sessionR struct {

View file

@ -4,8 +4,8 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/aarondl/opt/null"
"github.com/gorilla/mux"
)

View file

@ -5,9 +5,9 @@ import (
"net/http"
"strconv"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/aarondl/opt/null"
"github.com/gorilla/mux"
)

View file

@ -4,9 +4,9 @@ import (
"context"
"net/http"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/types"
//"github.com/aarondl/opt/null"
"github.com/gorilla/mux"
)

View file

@ -4,10 +4,10 @@ import (
"context"
"net/http"
//modelpublic "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/public/model"
//modelpublicreport "github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
//modelpublic "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/public/model"
//modelpublicreport "source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/publicreport/model"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/gorilla/mux"
//"github.com/rs/zerolog/log"
)

View file

@ -6,12 +6,12 @@ import (
"net/http"
"strconv"
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/Gleipnir-Technology/nidus-sync/platform/file"
"github.com/gorilla/mux"
"github.com/rs/zerolog/log"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/enums"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform/file"
)
type uploadR struct {

View file

@ -6,14 +6,14 @@ import (
"net/http"
"strconv"
"github.com/Gleipnir-Technology/nidus-sync/db/enums"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
"github.com/Gleipnir-Technology/nidus-sync/platform"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
"github.com/google/uuid"
"github.com/gorilla/mux"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/enums"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/models"
nhttp "source.gleipnir.technology/Gleipnir/nidus-sync/http"
"source.gleipnir.technology/Gleipnir/nidus-sync/platform"
//"github.com/rs/zerolog/log"
)
@ -71,6 +71,7 @@ func (res *userR) response(u *platform.User) (*user, error) {
type userR struct {
router *router
}
func (res *userR) ByIDGet(ctx context.Context, r *http.Request, user platform.User, query QueryParams) (*platform.User, *nhttp.ErrorWithStatus) {
vars := mux.Vars(r)
user_id_str := vars["id"]