derp: rename panelapi to remote
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
"github.com/pterodactyl/wings/config"
|
||||
"github.com/pterodactyl/wings/environment"
|
||||
"github.com/pterodactyl/wings/environment/docker"
|
||||
"github.com/pterodactyl/wings/panelapi"
|
||||
"github.com/pterodactyl/wings/remote"
|
||||
"github.com/pterodactyl/wings/server/filesystem"
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@ func (m *manager) Initialize(serversPerPage int) error {
|
||||
log.Info("fetching list of servers from API")
|
||||
assignedServers, err := m.panelClient.GetServers(context.TODO(), serversPerPage)
|
||||
if err != nil {
|
||||
if !panelapi.IsRequestError(err) {
|
||||
if !remote.IsRequestError(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/pterodactyl/wings/panelapi"
|
||||
"github.com/pterodactyl/wings/remote"
|
||||
)
|
||||
|
||||
type Manager interface {
|
||||
@@ -16,11 +16,11 @@ type Manager interface {
|
||||
type manager struct {
|
||||
servers Collection
|
||||
|
||||
panelClient panelapi.Client
|
||||
panelClient remote.Client
|
||||
}
|
||||
|
||||
// NewManager creates a new server manager.
|
||||
func NewManager(panelClient panelapi.Client) Manager {
|
||||
func NewManager(panelClient remote.Client) Manager {
|
||||
return &manager{panelClient: panelClient}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user