Skip to content

Commit

Permalink
🎨 change package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Aug 8, 2024
1 parent 1532d29 commit 0ebd59d
Show file tree
Hide file tree
Showing 53 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path"

"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/utils"
)

var cmdName string = "miaospeed"
Expand Down
2 changes: 1 addition & 1 deletion cli_misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"regexp"

"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/utils"
)

const MAXMIND_DB_DOWNLOAD_URL = "https://download.maxmind.com/app/geoip_download?edition_id=%s&license_key=%s&suffix=tar.gz"
Expand Down
8 changes: 4 additions & 4 deletions cli_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"os"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/service/macros/script"
"github.com/AiportR/miaospeed/utils"
"github.com/AiportR/miaospeed/vendors"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/service/macros/script"
"github.com/airportr/miaospeed/utils"
"github.com/airportr/miaospeed/vendors"
)

type ScriptTestCliParams struct {
Expand Down
4 changes: 2 additions & 2 deletions cli_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"strings"

"github.com/AiportR/miaospeed/service"
"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/service"
"github.com/airportr/miaospeed/utils"
)

func InitConfigServer() *utils.GlobalConfig {
Expand Down
8 changes: 4 additions & 4 deletions engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/dop251/goja_nodejs/console"
"github.com/dop251/goja_nodejs/require"

"github.com/AiportR/miaospeed/engine/factory"
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/engine/factory"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils"
"github.com/airportr/miaospeed/utils/structs"
)

func VMNew() *goja.Runtime {
Expand Down
6 changes: 3 additions & 3 deletions engine/factory/fetch.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package factory

import (
"github.com/AiportR/miaospeed/engine/helpers"
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/vendors"
"github.com/airportr/miaospeed/engine/helpers"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/vendors"
"github.com/dop251/goja"
)

Expand Down
6 changes: 3 additions & 3 deletions engine/factory/netcat.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package factory

import (
"github.com/AiportR/miaospeed/engine/helpers"
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/vendors"
"github.com/airportr/miaospeed/engine/helpers"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/vendors"
"github.com/dop251/goja"
)

Expand Down
2 changes: 1 addition & 1 deletion engine/factory/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package factory
import (
"fmt"

"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/utils"
"github.com/dop251/goja"
)

Expand Down
4 changes: 2 additions & 2 deletions interfaces/api_request_config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package interfaces

import (
"github.com/AiportR/miaospeed/preconfigs"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/preconfigs"
"github.com/airportr/miaospeed/utils/structs"
)

type SlaveRequestConfigsV1 struct {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/proxy.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package interfaces

import "github.com/AiportR/miaospeed/utils/structs"
import "github.com/airportr/miaospeed/utils/structs"

type ProxyType string

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

import (
"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/utils"
)

var COMPILATIONTIME string
Expand Down
6 changes: 3 additions & 3 deletions service/macros/geo/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"net"
"strings"

"github.com/AiportR/miaospeed/engine"
"github.com/AiportR/miaospeed/engine/helpers"
"github.com/AiportR/miaospeed/interfaces"
"github.com/airportr/miaospeed/engine"
"github.com/airportr/miaospeed/engine/helpers"
"github.com/airportr/miaospeed/interfaces"
)

func ExecIpCheck(p interfaces.Vendor, script string, network interfaces.RequestOptionsNetwork) (ipstacks *interfaces.IPStacks) {
Expand Down
4 changes: 2 additions & 2 deletions service/macros/geo/geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"net"
"strings"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils"
)

func RemoteLookup(p interfaces.Vendor, script string, retry int) *interfaces.IPStacks {
Expand Down
10 changes: 5 additions & 5 deletions service/macros/geo/geocheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package geo
import (
"time"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/AiportR/miaospeed/utils/structs/memutils"
"github.com/AiportR/miaospeed/utils/structs/obliviousmap"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils"
"github.com/airportr/miaospeed/utils/structs"
"github.com/airportr/miaospeed/utils/structs/memutils"
"github.com/airportr/miaospeed/utils/structs/obliviousmap"
)

var GeoCache *obliviousmap.ObliviousMap[*interfaces.GeoInfo]
Expand Down
4 changes: 2 additions & 2 deletions service/macros/geo/macro.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package geo

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils/structs"
)

type Geo struct {
Expand Down
4 changes: 2 additions & 2 deletions service/macros/geo/mmdb.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package geo

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils"
)

func RunMMDBCheck(rawIp string) *interfaces.GeoInfo {
Expand Down
2 changes: 1 addition & 1 deletion service/macros/invalid/macro.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package invalid

import "github.com/AiportR/miaospeed/interfaces"
import "github.com/airportr/miaospeed/interfaces"

type Invalid struct{}

Expand Down
16 changes: 8 additions & 8 deletions service/macros/macros.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package macros

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils/structs"

"github.com/AiportR/miaospeed/service/macros/geo"
"github.com/AiportR/miaospeed/service/macros/ping"
"github.com/AiportR/miaospeed/service/macros/script"
"github.com/AiportR/miaospeed/service/macros/speed"
"github.com/AiportR/miaospeed/service/macros/udp"
"github.com/airportr/miaospeed/service/macros/geo"
"github.com/airportr/miaospeed/service/macros/ping"
"github.com/airportr/miaospeed/service/macros/script"
"github.com/airportr/miaospeed/service/macros/speed"
"github.com/airportr/miaospeed/service/macros/udp"

"github.com/AiportR/miaospeed/service/macros/invalid"
"github.com/airportr/miaospeed/service/macros/invalid"
)

var registeredList = map[interfaces.SlaveRequestMacroType]func() interfaces.SlaveRequestMacro{
Expand Down
2 changes: 1 addition & 1 deletion service/macros/ping/macro.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ping

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/airportr/miaospeed/interfaces"
)

type Ping struct {
Expand Down
8 changes: 4 additions & 4 deletions service/macros/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"strings"
"time"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/preconfigs"
"github.com/AiportR/miaospeed/utils"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/preconfigs"
"github.com/airportr/miaospeed/utils"
"github.com/airportr/miaospeed/utils/structs"
)

type pingFuncType func(ctx context.Context, p interfaces.Vendor, url string) (uint16, uint16, error)
Expand Down
6 changes: 3 additions & 3 deletions service/macros/script/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"runtime"
"time"

"github.com/AiportR/miaospeed/engine"
"github.com/AiportR/miaospeed/engine/helpers"
"github.com/AiportR/miaospeed/interfaces"
"github.com/airportr/miaospeed/engine"
"github.com/airportr/miaospeed/engine/helpers"
"github.com/airportr/miaospeed/interfaces"
"github.com/dop251/goja"
)

Expand Down
4 changes: 2 additions & 2 deletions service/macros/script/macro.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"sync"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils/structs"
"golang.org/x/sync/semaphore"
)

Expand Down
2 changes: 1 addition & 1 deletion service/macros/speed/macro.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package speed

import "github.com/AiportR/miaospeed/interfaces"
import "github.com/airportr/miaospeed/interfaces"

type Speed struct {
AvgSpeed uint64
Expand Down
10 changes: 5 additions & 5 deletions service/macros/speed/speed.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
jsoniter "github.com/json-iterator/go"
"github.com/juju/ratelimit"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/preconfigs"
"github.com/AiportR/miaospeed/utils"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/AiportR/miaospeed/vendors"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/preconfigs"
"github.com/airportr/miaospeed/utils"
"github.com/airportr/miaospeed/utils/structs"
"github.com/airportr/miaospeed/vendors"
)

func Once(speed *Speed, proxy interfaces.Vendor, cfg *interfaces.SlaveRequestConfigsV2) {
Expand Down
4 changes: 2 additions & 2 deletions service/macros/udp/macro.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package udp
import (
"strings"

"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/preconfigs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/preconfigs"
)

type Udp struct {
Expand Down
2 changes: 1 addition & 1 deletion service/macros/udp/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net"
"time"

"github.com/AiportR/miaospeed/utils"
"github.com/airportr/miaospeed/utils"
"github.com/pion/stun"
)

Expand Down
2 changes: 1 addition & 1 deletion service/macros/udp/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"sync"

"github.com/AiportR/miaospeed/interfaces"
"github.com/airportr/miaospeed/interfaces"
)

func detectNATType(proxy interfaces.Vendor, url string) (nmt NATMapType, nft NATFilterType) {
Expand Down
4 changes: 2 additions & 2 deletions service/matrices/averagespeed/matrix.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package averagespeed

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/service/macros/speed"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/service/macros/speed"
)

type AverageSpeed struct {
Expand Down
4 changes: 2 additions & 2 deletions service/matrices/httpping/matrix.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package httpping

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/service/macros/ping"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/service/macros/ping"
)

type HTTPPing struct {
Expand Down
4 changes: 2 additions & 2 deletions service/matrices/inboundgeoip/matrix.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package inboundgeoip

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/service/macros/geo"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/service/macros/geo"
)

type InboundGeoIP struct {
Expand Down
2 changes: 1 addition & 1 deletion service/matrices/invalid/matrix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package invalid

import "github.com/AiportR/miaospeed/interfaces"
import "github.com/airportr/miaospeed/interfaces"

type Invalid struct {
interfaces.InvalidDS
Expand Down
24 changes: 12 additions & 12 deletions service/matrices/matrices.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package matrices

import (
"github.com/AiportR/miaospeed/interfaces"
"github.com/AiportR/miaospeed/utils/structs"
"github.com/airportr/miaospeed/interfaces"
"github.com/airportr/miaospeed/utils/structs"

"github.com/AiportR/miaospeed/service/matrices/averagespeed"
"github.com/AiportR/miaospeed/service/matrices/httpping"
"github.com/AiportR/miaospeed/service/matrices/inboundgeoip"
"github.com/AiportR/miaospeed/service/matrices/invalid"
"github.com/AiportR/miaospeed/service/matrices/maxspeed"
"github.com/AiportR/miaospeed/service/matrices/outboundgeoip"
"github.com/AiportR/miaospeed/service/matrices/persecondspeed"
"github.com/AiportR/miaospeed/service/matrices/rttping"
"github.com/AiportR/miaospeed/service/matrices/scripttest"
"github.com/AiportR/miaospeed/service/matrices/udptype"
"github.com/airportr/miaospeed/service/matrices/averagespeed"
"github.com/airportr/miaospeed/service/matrices/httpping"
"github.com/airportr/miaospeed/service/matrices/inboundgeoip"
"github.com/airportr/miaospeed/service/matrices/invalid"
"github.com/airportr/miaospeed/service/matrices/maxspeed"
"github.com/airportr/miaospeed/service/matrices/outboundgeoip"
"github.com/airportr/miaospeed/service/matrices/persecondspeed"
"github.com/airportr/miaospeed/service/matrices/rttping"
"github.com/airportr/miaospeed/service/matrices/scripttest"
"github.com/airportr/miaospeed/service/matrices/udptype"
)

var registeredList = map[interfaces.SlaveRequestMatrixType]func() interfaces.SlaveRequestMatrix{
Expand Down
Loading

0 comments on commit 0ebd59d

Please sign in to comment.