core/internal/app/service_tw.go

17 lines
538 B
Go

package app
import (
"context"
"net/url"
"gitea.dwysokinski.me/twhelp/corev3/internal/domain"
)
type TWService interface {
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)
}