mirror of
https://github.com/twofas/2fas-server.git
synced 2024-11-21 17:59:55 +01:00
update module name
This commit is contained in:
parent
4ee79b5fe4
commit
15442b77ea
@ -1,11 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/api"
|
||||
"github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/api"
|
||||
"github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/websocket"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/websocket"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
11
go.mod
11
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/2fas/api
|
||||
module github.com/twofas/2fas-server
|
||||
|
||||
go 1.15
|
||||
|
||||
@ -11,26 +11,17 @@ require (
|
||||
github.com/go-playground/validator/v10 v10.8.0
|
||||
github.com/go-redis/redis/v8 v8.11.5
|
||||
github.com/go-sql-driver/mysql v1.6.0
|
||||
github.com/golang/protobuf v1.5.2 // indirect
|
||||
github.com/google/go-querystring v1.1.0
|
||||
github.com/google/uuid v1.3.0
|
||||
github.com/gorilla/websocket v1.4.2
|
||||
github.com/jaswdr/faker v1.15.0
|
||||
github.com/json-iterator/go v1.1.11 // indirect
|
||||
github.com/kelseyhightower/envconfig v1.4.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.13 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.1 // indirect
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/pquerna/otp v1.3.0
|
||||
github.com/pressly/goose v2.7.0+incompatible
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
github.com/spf13/viper v1.9.0
|
||||
github.com/stretchr/testify v1.7.0
|
||||
github.com/ugorji/go v1.2.6 // indirect
|
||||
google.golang.org/api v0.56.0
|
||||
google.golang.org/protobuf v1.27.1 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
gorm.io/datatypes v1.0.7
|
||||
gorm.io/driver/mysql v1.3.2
|
||||
gorm.io/gorm v1.23.6
|
||||
|
48
go.sum
48
go.sum
@ -45,7 +45,6 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX
|
||||
cloud.google.com/go/storage v1.10.0 h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
firebase.google.com/go v1.0.2 h1:MCEmjmlwZiQ0s+z7EDVX6e3KHHvpGdF2pJBiQAXVXao=
|
||||
firebase.google.com/go v3.13.0+incompatible h1:3TdYC3DDi6aHn20qoRkxwGqNgdjtblwVAyRLQwGn/+4=
|
||||
firebase.google.com/go v3.13.0+incompatible/go.mod h1:xlah6XbEyW6tbfSklcfe5FHJIwjt8toICdV5Wh9ptHs=
|
||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.19.0/go.mod h1:h6H6c8enJmmocHUbLiiGY6sx7f9i+X3m1CHdd5c6Rdw=
|
||||
@ -66,8 +65,6 @@ github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgI
|
||||
github.com/aws/aws-sdk-go v1.42.9 h1:8ptAGgA+uC2TUbdvUeOVSfBocIZvGE2NKiLxkAcn1GA=
|
||||
github.com/aws/aws-sdk-go v1.42.9/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
|
||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI=
|
||||
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
|
||||
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
|
||||
@ -97,8 +94,6 @@ github.com/denisenkom/go-mssqldb v0.12.0/go.mod h1:iiK0YP1ZeepvmBQk/QpLEhhTNJgfz
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
|
||||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
|
||||
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
|
||||
github.com/doug-martin/goqu v1.0.0 h1:5qQwMzItVsRGYf/3GdAWhb1s0KE5YBaTq9phYI2JUGQ=
|
||||
github.com/doug-martin/goqu v5.0.0+incompatible h1:C7O6xQYoWpSGX32C1faMJWe1s82Ktr2jjWf2joReiSQ=
|
||||
github.com/doug-martin/goqu/v9 v9.18.0 h1:/6bcuEtAe6nsSMVK/M+fOiXUNfyFF3yYtE07DBPFMYY=
|
||||
github.com/doug-martin/goqu/v9 v9.18.0/go.mod h1:nf0Wc2/hV3gYK9LiyqIrzBEVGlI8qW3GuDCEobC4wBQ=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
@ -136,11 +131,9 @@ github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTM
|
||||
github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY=
|
||||
github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
|
||||
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
|
||||
github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE=
|
||||
github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4=
|
||||
github.com/go-playground/validator/v10 v10.8.0 h1:1kAa0fCrnpv+QYdkdcRzrRM7AyYs5o8+jZdJCz9xj6k=
|
||||
github.com/go-playground/validator/v10 v10.8.0/go.mod h1:9JhgTzTaE31GZDpH/HSvHiRJrJ3iKAgqqH0Bl/Ocjdk=
|
||||
github.com/go-redis/redis v6.15.9+incompatible h1:K0pv1D7EQUjfyoMql+r/jZqCLizCGKFlFgcHWWmHQjg=
|
||||
github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI=
|
||||
github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo=
|
||||
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
|
||||
@ -173,7 +166,6 @@ github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+Licev
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||
@ -203,12 +195,9 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
|
||||
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=
|
||||
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
@ -320,8 +309,6 @@ github.com/jaswdr/faker v1.15.0 h1:wcEVaPKFE53NvdT4fl+w3b0IXdefp1Yk0BdBs0APCoA=
|
||||
github.com/jaswdr/faker v1.15.0/go.mod h1:x7ZlyB1AZqwqKZgyQlnqEG8FDptmHlncA5u2zY/yi6w=
|
||||
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
|
||||
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
|
||||
github.com/jinzhu/now v1.1.2 h1:eVKgfIdy9b6zbWBMgFpfDPoAMifwSZagU9HmEU6zgiI=
|
||||
github.com/jinzhu/now v1.1.2/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
||||
github.com/jinzhu/now v1.1.4/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
||||
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
|
||||
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
|
||||
@ -330,14 +317,11 @@ github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHW
|
||||
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
|
||||
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
|
||||
github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
|
||||
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/json-iterator/go v1.1.11 h1:uVUAXhF2To8cbw/3xN3pxj6kk7TYKs98NIrTqPlMWAQ=
|
||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
|
||||
github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||
@ -351,14 +335,12 @@ github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
|
||||
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw=
|
||||
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
|
||||
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
|
||||
github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w=
|
||||
github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY=
|
||||
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||
github.com/lib/pq v1.10.1 h1:6VXZrLU0jHBYyAqrSPa+MgPfnSvTPuMgK+k0o5kVFWo=
|
||||
github.com/lib/pq v1.10.1/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||
github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8=
|
||||
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||
@ -375,11 +357,9 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
|
||||
github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
|
||||
github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA=
|
||||
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-sqlite3 v1.14.7 h1:fxWBnXkxfM6sRiuH3bqJ4CfzZojMOLVc0UTsTglEghA=
|
||||
github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/mattn/go-sqlite3 v1.14.12 h1:TJ1bhYJPV44phC+IMu1u2K/i5RriLTPe+yc68XDJ1Z0=
|
||||
@ -393,11 +373,9 @@ github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:F
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo=
|
||||
github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
@ -429,8 +407,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
|
||||
github.com/pquerna/otp v1.3.0 h1:oJV/SkzR33anKXwQU3Of42rL4wbrffP4uvUf1SvS5Xs=
|
||||
github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
|
||||
github.com/pressly/goose v2.7.0+incompatible h1:PWejVEv07LCerQEzMMeAtjuyCKbyprZ/LBa6K5P0OCQ=
|
||||
github.com/pressly/goose v2.7.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
@ -461,7 +437,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.9.0 h1:yR6EXjTp0y0cLN8OZg1CRZmOBdI88UcGkhgyJhu6nZk=
|
||||
github.com/spf13/viper v1.9.0/go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4=
|
||||
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=
|
||||
@ -470,7 +445,6 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
@ -478,12 +452,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s
|
||||
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||
github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
|
||||
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
|
||||
github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E=
|
||||
github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0=
|
||||
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
|
||||
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
|
||||
github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ=
|
||||
github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
@ -525,14 +495,11 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U
|
||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
|
||||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
|
||||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ=
|
||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE=
|
||||
@ -614,7 +581,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
|
||||
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
|
||||
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q=
|
||||
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
@ -673,7 +639,6 @@ golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7w
|
||||
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@ -707,10 +672,8 @@ golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf h1:2ucpDCmfkl8Bd/FsLtiD653Wf96cW37s+iGx93zsu4k=
|
||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
|
||||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
@ -723,7 +686,6 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
@ -794,7 +756,6 @@ golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8T
|
||||
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
@ -925,11 +886,9 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD
|
||||
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ=
|
||||
google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
|
||||
@ -946,19 +905,15 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWD
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gorm.io/datatypes v1.0.7 h1:8NhJN4+annFjwV1WufDhFiPjdUvV1lSGUdg1UCjQIWY=
|
||||
gorm.io/datatypes v1.0.7/go.mod h1:l9qkCuy0CdzDEop9HKUdcnC9gHC2sRlaFtHkTzsZRqg=
|
||||
gorm.io/driver/mysql v1.1.2 h1:OofcyE2lga734MxwcCW9uB4mWNXMr50uaGRVwQL2B0M=
|
||||
gorm.io/driver/mysql v1.1.2/go.mod h1:4P/X9vSc3WTrhTLZ259cpFd6xKNYiSSdSZngkSBGIMM=
|
||||
gorm.io/driver/mysql v1.3.2 h1:QJryWiqQ91EvZ0jZL48NOpdlPdMjdip1hQ8bTgo4H7I=
|
||||
gorm.io/driver/mysql v1.3.2/go.mod h1:ChK6AHbHgDCFZyJp0F+BmVGb06PSIoh9uVYKAlRbb2U=
|
||||
gorm.io/driver/postgres v1.3.4 h1:evZ7plF+Bp+Lr1mO5NdPvd6M/N98XtwHixGB+y7fdEQ=
|
||||
@ -967,9 +922,6 @@ gorm.io/driver/sqlite v1.3.1 h1:bwfE+zTEWklBYoEodIOIBwuWHpnx52Z9zJFW5F33WLk=
|
||||
gorm.io/driver/sqlite v1.3.1/go.mod h1:wJx0hJspfycZ6myN38x1O/AqLtNS6c5o9TndewFbELg=
|
||||
gorm.io/driver/sqlserver v1.3.1 h1:F5t6ScMzOgy1zukRTIZgLZwKahgt3q1woAILVolKpOI=
|
||||
gorm.io/driver/sqlserver v1.3.1/go.mod h1:w25Vrx2BG+CJNUu/xKbFhaKlGxT/nzRkhWCCoptX8tQ=
|
||||
gorm.io/gorm v1.21.12/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0=
|
||||
gorm.io/gorm v1.21.15 h1:gAyaDoPw0lCyrSFWhBlahbUA1U4P5RViC1uIqoB+1Rk=
|
||||
gorm.io/gorm v1.21.15/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0=
|
||||
gorm.io/gorm v1.23.1/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk=
|
||||
gorm.io/gorm v1.23.6 h1:KFLdNgri4ExFFGTRGGFWON2P1ZN28+9SJRN8voOoYe0=
|
||||
gorm.io/gorm v1.23.6/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk=
|
||||
|
@ -2,17 +2,17 @@ package api
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/2fas/api/config"
|
||||
extension "github.com/2fas/api/internal/api/browser_extension/service"
|
||||
health "github.com/2fas/api/internal/api/health/service"
|
||||
icons "github.com/2fas/api/internal/api/icons/service"
|
||||
mobile "github.com/2fas/api/internal/api/mobile/service"
|
||||
support "github.com/2fas/api/internal/api/support/service"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
"github.com/2fas/api/internal/common/redis"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
extension "github.com/twofas/2fas-server/internal/api/browser_extension/service"
|
||||
health "github.com/twofas/2fas-server/internal/api/health/service"
|
||||
icons "github.com/twofas/2fas-server/internal/api/icons/service"
|
||||
mobile "github.com/twofas/2fas-server/internal/api/mobile/service"
|
||||
support "github.com/twofas/2fas-server/internal/api/support/service"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
"github.com/twofas/2fas-server/internal/common/redis"
|
||||
)
|
||||
|
||||
var validate *validator.Validate
|
||||
|
@ -2,9 +2,9 @@ package adapters
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,10 +2,10 @@ package adapters
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/command"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/query"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/query"
|
||||
)
|
||||
|
||||
type Commands struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
)
|
||||
|
||||
type Close2FaRequest struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
)
|
||||
|
||||
type RegisterBrowserExtension struct {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
)
|
||||
|
||||
type RemoveExtensionPairedDevice struct {
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"firebase.google.com/go/messaging"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/push"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/push"
|
||||
"net/url"
|
||||
"time"
|
||||
)
|
||||
|
@ -2,9 +2,9 @@ package command
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
type StoreLogEvent struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
)
|
||||
|
||||
type UpdateBrowserExtension struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package query
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,9 +3,9 @@ package security
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/rate_limit"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/rate_limit"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
package ports
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/adapters"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/command"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/query"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/query"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,21 +2,21 @@ package service
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/api/browser_extension/adapters"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/command"
|
||||
"github.com/2fas/api/internal/api/browser_extension/app/query"
|
||||
apisec "github.com/2fas/api/internal/api/browser_extension/app/security"
|
||||
"github.com/2fas/api/internal/api/browser_extension/ports"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/2fas/api/internal/common/aws"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
mobile "github.com/2fas/api/internal/common/push"
|
||||
"github.com/2fas/api/internal/common/rate_limit"
|
||||
"github.com/2fas/api/internal/common/security"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-redis/redis/v8"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/app/query"
|
||||
apisec "github.com/twofas/2fas-server/internal/api/browser_extension/app/security"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/ports"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/aws"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
mobile "github.com/twofas/2fas-server/internal/common/push"
|
||||
"github.com/twofas/2fas-server/internal/common/rate_limit"
|
||||
"github.com/twofas/2fas-server/internal/common/security"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,14 +3,14 @@ package ports
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/config"
|
||||
mobile "github.com/2fas/api/internal/api/mobile/domain"
|
||||
support "github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/2fas/api/internal/common/aws"
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-redis/redis/v8"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
mobile "github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
support "github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/aws"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
@ -1,11 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/api/health/ports"
|
||||
"github.com/2fas/api/internal/common/http"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-redis/redis/v8"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/api/health/ports"
|
||||
"github.com/twofas/2fas-server/internal/common/http"
|
||||
)
|
||||
|
||||
type HealthModule struct {
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package adapters
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package adapters
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/app/command"
|
||||
"github.com/2fas/api/internal/api/icons/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/queries"
|
||||
)
|
||||
|
||||
type Commands struct {
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"bytes"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"gorm.io/gorm"
|
||||
"image"
|
||||
"image/png"
|
||||
|
@ -2,9 +2,9 @@ package command
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
domain2 "github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
domain2 "github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -2,11 +2,11 @@ package command
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
"image/png"
|
||||
|
@ -2,9 +2,9 @@ package command
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package queries
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package queries
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package queries
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package queries
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"gorm.io/datatypes"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
@ -3,16 +3,16 @@ package ports
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/2fas/api/internal/api/icons/app"
|
||||
"github.com/2fas/api/internal/api/icons/app/command"
|
||||
"github.com/2fas/api/internal/api/icons/app/queries"
|
||||
"github.com/2fas/api/internal/api/icons/domain"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
type RoutesHandler struct {
|
||||
|
@ -2,18 +2,18 @@ package service
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/api/icons/adapters"
|
||||
"github.com/2fas/api/internal/api/icons/app"
|
||||
"github.com/2fas/api/internal/api/icons/app/command"
|
||||
"github.com/2fas/api/internal/api/icons/app/queries"
|
||||
"github.com/2fas/api/internal/api/icons/ports"
|
||||
"github.com/2fas/api/internal/common/aws"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
httpsec "github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/ports"
|
||||
"github.com/twofas/2fas-server/internal/common/aws"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
httpsec "github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package adapters
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,9 +3,9 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/app/command"
|
||||
"github.com/2fas/api/internal/api/mobile/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/queries"
|
||||
)
|
||||
|
||||
type Commands struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
type CreateNotification struct {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,11 +2,11 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/2fas/api/internal/api/mobile/adapters"
|
||||
mobile_domain "github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/2fas/api/internal/common/websocket"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/adapters"
|
||||
mobile_domain "github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/websocket"
|
||||
)
|
||||
|
||||
type BrowserExtensionHasBeenPairedWithDevice struct {
|
||||
|
@ -2,8 +2,8 @@ package command
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
type RegisterMobileDevice struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
type RemoveDevicePairedExtension struct {
|
||||
|
@ -2,11 +2,11 @@ package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/2fas/api/internal/api/mobile/adapters"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/websocket"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/adapters"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/websocket"
|
||||
)
|
||||
|
||||
type Send2FaTokenWebsocketMessage struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
type UpdateMobileDevice struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
type UpdateNotification struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package query
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package query
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/adapters"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -3,9 +3,9 @@ package security
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/rate_limit"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/rate_limit"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/browser_extension/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/browser_extension/domain"
|
||||
)
|
||||
|
||||
type DeviceBrowserExtensionRepository interface {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
@ -2,17 +2,17 @@ package ports
|
||||
|
||||
import (
|
||||
"errors"
|
||||
browser_adapters "github.com/2fas/api/internal/api/browser_extension/adapters"
|
||||
"github.com/2fas/api/internal/api/mobile/adapters"
|
||||
"github.com/2fas/api/internal/api/mobile/app"
|
||||
"github.com/2fas/api/internal/api/mobile/app/command"
|
||||
"github.com/2fas/api/internal/api/mobile/app/queries"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
browser_adapters "github.com/twofas/2fas-server/internal/api/browser_extension/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
type RoutesHandler struct {
|
||||
|
@ -2,23 +2,23 @@ package service
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/2fas/api/config"
|
||||
browser_extension_adapters "github.com/2fas/api/internal/api/browser_extension/adapters"
|
||||
"github.com/2fas/api/internal/api/mobile/adapters"
|
||||
"github.com/2fas/api/internal/api/mobile/app"
|
||||
"github.com/2fas/api/internal/api/mobile/app/command"
|
||||
"github.com/2fas/api/internal/api/mobile/app/queries"
|
||||
apisec "github.com/2fas/api/internal/api/mobile/app/security"
|
||||
"github.com/2fas/api/internal/api/mobile/ports"
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
httpsec "github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/common/rate_limit"
|
||||
"github.com/2fas/api/internal/common/security"
|
||||
"github.com/2fas/api/internal/common/websocket"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/go-redis/redis/v8"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
browser_extension_adapters "github.com/twofas/2fas-server/internal/api/browser_extension/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/app/queries"
|
||||
apisec "github.com/twofas/2fas-server/internal/api/mobile/app/security"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/ports"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
httpsec "github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/common/rate_limit"
|
||||
"github.com/twofas/2fas-server/internal/common/security"
|
||||
"github.com/twofas/2fas-server/internal/common/websocket"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
)
|
||||
|
||||
func DeviceIdExistsValidator(repository domain.MobileDeviceRepository) validator.Func {
|
||||
|
@ -3,8 +3,8 @@ package adapters
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/support/app/command"
|
||||
"github.com/2fas/api/internal/api/support/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/queries"
|
||||
)
|
||||
|
||||
type Commands struct {
|
||||
|
@ -3,11 +3,11 @@ package command
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"github.com/2fas/api/internal/api/support/adapters"
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/support/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"io/ioutil"
|
||||
"mime/multipart"
|
||||
"path/filepath"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
)
|
||||
|
||||
type CreateDebugLogsAuditClaim struct {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
)
|
||||
|
||||
type UpdateDebugLogsAudit struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package queries
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/support/adapters"
|
||||
"github.com/doug-martin/goqu/v9"
|
||||
"github.com/twofas/2fas-server/internal/api/support/adapters"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -2,16 +2,16 @@ package ports
|
||||
|
||||
import (
|
||||
"errors"
|
||||
adapters3 "github.com/2fas/api/internal/api/support/adapters"
|
||||
"github.com/2fas/api/internal/api/support/app"
|
||||
"github.com/2fas/api/internal/api/support/app/command"
|
||||
"github.com/2fas/api/internal/api/support/app/queries"
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
adapters3 "github.com/twofas/2fas-server/internal/api/support/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
type RoutesHandler struct {
|
||||
|
@ -2,20 +2,20 @@ package service
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/api/support/adapters"
|
||||
"github.com/2fas/api/internal/api/support/app"
|
||||
"github.com/2fas/api/internal/api/support/app/command"
|
||||
"github.com/2fas/api/internal/api/support/app/queries"
|
||||
"github.com/2fas/api/internal/api/support/domain"
|
||||
"github.com/2fas/api/internal/api/support/ports"
|
||||
"github.com/2fas/api/internal/common/aws"
|
||||
"github.com/2fas/api/internal/common/clock"
|
||||
"github.com/2fas/api/internal/common/db"
|
||||
httpsec "github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/common/storage"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/api/support/adapters"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/command"
|
||||
"github.com/twofas/2fas-server/internal/api/support/app/queries"
|
||||
"github.com/twofas/2fas-server/internal/api/support/domain"
|
||||
"github.com/twofas/2fas-server/internal/api/support/ports"
|
||||
"github.com/twofas/2fas-server/internal/common/aws"
|
||||
"github.com/twofas/2fas-server/internal/common/clock"
|
||||
"github.com/twofas/2fas-server/internal/common/db"
|
||||
httpsec "github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/common/storage"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
package aws
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/aws/aws-sdk-go/service/s3/s3manager"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -3,8 +3,8 @@ package db
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/go-sql-driver/mysql"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
)
|
||||
|
||||
func NewDbConnection(conf config.Configuration) *sql.DB {
|
||||
|
@ -2,7 +2,7 @@ package db
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"gorm.io/gorm/logger"
|
||||
|
||||
gosql "github.com/go-sql-driver/mysql"
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
func RequestJsonLogger() gin.HandlerFunc {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package http
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/google/uuid"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -2,10 +2,10 @@ package http
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/2fas/api/config"
|
||||
"github.com/2fas/api/internal/common/api"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
"github.com/twofas/2fas-server/internal/common/api"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
firebase "firebase.google.com/go"
|
||||
"firebase.google.com/go/messaging"
|
||||
"github.com/2fas/api/internal/api/mobile/domain"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/api/mobile/domain"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"google.golang.org/api/option"
|
||||
"io/ioutil"
|
||||
"time"
|
||||
|
@ -3,9 +3,9 @@ package security
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/2fas/api/internal/common/rate_limit"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"github.com/twofas/2fas-server/internal/common/rate_limit"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package security
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/config"
|
||||
http2 "github.com/2fas/api/internal/common/http"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/twofas/2fas-server/config"
|
||||
http2 "github.com/twofas/2fas-server/internal/common/http"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
@ -2,9 +2,9 @@ package websocket
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
app_http "github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gorilla/websocket"
|
||||
app_http "github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
|
@ -1,10 +1,10 @@
|
||||
package websocket
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/http"
|
||||
"github.com/2fas/api/internal/websocket/browser_extension"
|
||||
"github.com/2fas/api/internal/websocket/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/common/http"
|
||||
"github.com/twofas/2fas-server/internal/websocket/browser_extension"
|
||||
"github.com/twofas/2fas-server/internal/websocket/common"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package browser_extension
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/websocket/common"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/twofas/2fas-server/internal/websocket/common"
|
||||
)
|
||||
|
||||
type RoutesHandler struct {
|
||||
|
@ -2,8 +2,8 @@ package common
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/common/logging"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/twofas/2fas-server/internal/common/logging"
|
||||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,8 +2,8 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,9 +2,9 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,11 +2,11 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package tests
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/2fas/api/internal/common/crypto"
|
||||
"github.com/twofas/2fas-server/internal/common/crypto"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,11 +2,11 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"github.com/2fas/api/internal/api/icons/app/queries"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/jaswdr/faker"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/queries"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
)
|
||||
|
@ -2,11 +2,11 @@ package tests
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
query "github.com/2fas/api/internal/api/icons/app/queries"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/jaswdr/faker"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
query "github.com/twofas/2fas-server/internal/api/icons/app/queries"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
)
|
||||
|
@ -2,9 +2,9 @@ package tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"math/rand"
|
||||
"testing"
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/internal/api/icons/app/command"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/internal/api/icons/app/command"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,10 +2,10 @@ package tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/2fas/api/tests"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
"github.com/twofas/2fas-server/tests"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user