2023-12-23 09:54:47 +00:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2023-12-27 08:07:40 +00:00
|
|
|
"net/url"
|
2023-12-23 09:54:47 +00:00
|
|
|
|
|
|
|
"gitea.dwysokinski.me/twhelp/corev3/internal/domain"
|
|
|
|
)
|
|
|
|
|
|
|
|
type TWService interface {
|
2023-12-27 08:07:40 +00:00
|
|
|
GetOpenServers(ctx context.Context, baseURL *url.URL) (domain.BaseServers, error)
|
|
|
|
GetServerConfig(ctx context.Context, baseURL *url.URL) (domain.ServerConfig, error)
|
|
|
|
GetUnitInfo(ctx context.Context, baseURL *url.URL) (domain.UnitInfo, error)
|
|
|
|
GetBuildingInfo(ctx context.Context, baseURL *url.URL) (domain.BuildingInfo, error)
|
|
|
|
GetTribes(ctx context.Context, baseURL *url.URL) (domain.BaseTribes, error)
|
2023-12-23 09:54:47 +00:00
|
|
|
}
|