mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
[优化] 目录调整
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/utils/geoip"
|
||||
"github.com/rain-kl/openflare/openflare-server/utils/geoip/iputil"
|
||||
"github.com/rain-kl/openflare/pkg/geoip"
|
||||
"github.com/rain-kl/openflare/pkg/geoip/iputil"
|
||||
)
|
||||
|
||||
type MillisecondDuration time.Duration
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
type Manager struct {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
// Helper to write control file for the dummy script
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/observability"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/state"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/updater"
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
type APIResponse[T any] struct {
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/config"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/frps"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/state"
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
func BuildProfile(cfg *config.Config, stateStore *state.Store) *service.AgentNodeSystemProfile {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/httpclient"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/state"
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/wsclient"
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
)
|
||||
|
||||
type Runner struct {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/utils"
|
||||
"github.com/rain-kl/openflare/pkg/utils"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-relay/internal/config"
|
||||
)
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/rain-kl/openflare/openflare-server/service"
|
||||
shared "github.com/rain-kl/openflare/openflare-server/utils/wsclient"
|
||||
service "github.com/rain-kl/openflare/pkg/protocol"
|
||||
shared "github.com/rain-kl/openflare/pkg/wsclient"
|
||||
)
|
||||
|
||||
type WSMessage = shared.WSMessage
|
||||
|
||||
Reference in New Issue
Block a user