Documentation
¶
Overview ¶
Package transform converts API structs to DB structs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIData ¶
type APIData struct {
WarID *api.WarId
War *api.War
Planets *[]api.Planet
Campaigns *[]api.Campaign2
Dispatches *[]api.Dispatch
Assignments *[]api.Assignment2
}
APIData contains all relevant (unprocessed) data from the API, used for further processing.
type Assignments ¶
type Assignments struct{}
Assignments implements worker.DocTransformer
func (Assignments) Transform ¶
func (Assignments) Transform(data APIData, errFunc func(error)) *db.DocsProvider[structs.Assignment]
Transform implements the worker.DocTransformer interface
type Dispatches ¶
type Dispatches struct{}
Dispatches implements worker.DocTransformer
func (Dispatches) Transform ¶
func (Dispatches) Transform(data APIData, errFunc func(error)) *db.DocsProvider[structs.Dispatch]
Transform implements the worker.DocTransformer interface
Click to show internal directories.
Click to hide internal directories.