Documentation
¶
Index ¶
- type ChildLogbookEntry
- type ErrorState
- type GetChildLogbookEntriesResponse
- type GetChildLogbookEntriesWithOffsetResponse
- type GetLastLogbookEntriesForPowerUnitResponse
- type GetLastLogbookEntriesForPowerUnitWithOffsetResponse
- type GetLastLogbookEntryForPowerUnitResponse
- type Helper
- func (r *Helper) GetLastLogbookEntries(powerUnitIdentifiers []string) (*map[string]LogbookEntry, error)
- func (r *Helper) GetLogbookEntriesByDateRangeForPowerUnit(powerUnitIdentifier string, from time.Time, to time.Time) (*[]LogbookEntry, error)
- func (r *Helper) GetLogbookEntriesByDateRangeForPowerUnits(powerUnitIdentifiers []string, from time.Time, to time.Time) (*map[string]*[]LogbookEntry, error)
- type Item
- type LogbookEntry
- type MultiLangText
- type OriginalError
- type RotorSoftClient
- func (r *RotorSoftClient) GetChildLogbookEntries(parentLogEntryId int64, batchSize int) (*GetChildLogbookEntriesResponse, error)
- func (r *RotorSoftClient) GetChildLogbookEntriesWithOffset(parentLogEntryId int64, offsetLogbookEntryId int64, batchSize int) (*GetChildLogbookEntriesWithOffsetResponse, error)
- func (r *RotorSoftClient) GetLastLogbookEntriesForPowerUnit(powerUnitIdentifier string, batchSize int) (*GetLastLogbookEntriesForPowerUnitResponse, error)
- func (r *RotorSoftClient) GetLastLogbookEntriesForPowerUnitWithOffset(powerUnitIdentifier string, offsetLogbookEntryId int64, batchSize int) (*GetLastLogbookEntriesForPowerUnitWithOffsetResponse, error)
- func (r *RotorSoftClient) GetLastLogbookEntryForPowerUnit(powerUnitIdentifier string) (*GetLastLogbookEntryForPowerUnitResponse, error)
- type RotorsoftError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildLogbookEntry ¶ added in v0.0.4
type ChildLogbookEntry LogbookEntry
type ErrorState ¶ added in v0.0.4
type ErrorState struct {
XMLName xml.Name `xml:"errorStateName"`
Text MultiLangText `xml:"multiLangText"`
}
type GetChildLogbookEntriesResponse ¶ added in v0.0.4
type GetChildLogbookEntriesResponse struct {
XMLName xml.Name `xml:"getChildLogbookEntriesResponse"`
ChildLogbookEntries []ChildLogbookEntry `xml:"ChildLogbookEntries"`
}
type GetChildLogbookEntriesWithOffsetResponse ¶ added in v0.0.4
type GetChildLogbookEntriesWithOffsetResponse struct {
XMLName xml.Name `xml:"getChildLogbookEntriesWithOffsetResponse"`
ChildLogbookEntries []ChildLogbookEntry `xml:"ChildLogbookEntries"`
}
type GetLastLogbookEntriesForPowerUnitResponse ¶ added in v0.0.4
type GetLastLogbookEntriesForPowerUnitResponse struct {
XMLName xml.Name `xml:"getLastLogbookEntriesForPowerUnitResponse"`
LastLogbookEntries []LogbookEntry `xml:"LastLogbookEntries"`
}
type GetLastLogbookEntriesForPowerUnitWithOffsetResponse ¶ added in v0.0.4
type GetLastLogbookEntriesForPowerUnitWithOffsetResponse struct {
XMLName xml.Name `xml:"getLastLogbookEntriesForPowerUnitWithOffsetResponse"`
LastLogbookEntries []LogbookEntry `xml:"LastLogbookEntries"`
}
type GetLastLogbookEntryForPowerUnitResponse ¶ added in v0.0.4
type GetLastLogbookEntryForPowerUnitResponse struct {
XMLName xml.Name `xml:"getLastLogbookEntryForPowerUnitResponse"`
LastLogbookEntry LogbookEntry `xml:"LastLogbookEntry"`
}
type Helper ¶ added in v0.0.4
type Helper struct {
Client *RotorSoftClient
}
func (*Helper) GetLastLogbookEntries ¶ added in v0.0.4
func (r *Helper) GetLastLogbookEntries(powerUnitIdentifiers []string) (*map[string]LogbookEntry, error)
func (*Helper) GetLogbookEntriesByDateRangeForPowerUnit ¶ added in v0.0.4
func (r *Helper) GetLogbookEntriesByDateRangeForPowerUnit(powerUnitIdentifier string, from time.Time, to time.Time) (*[]LogbookEntry, error)
Filtering the Logbook after start date in range
type LogbookEntry ¶ added in v0.0.4
type LogbookEntry struct {
RSID int64 `xml:"RSID"`
PowerUnitName string `xml:"powerUnitName"`
PowerUnitIdentifier string `xml:"powerUnitIdentifier"`
StartDate time.Time `xml:"startDate"`
Duration int64 `xml:"duration"`
EndDate time.Time `xml:"endDate"`
ErrorStateName ErrorState `xml:"errorStateName"`
Color string `xml:"color"`
RotorsoftErrorName RotorsoftError `xml:"rotorsoftErrorName"`
OriginalErrorIdentifier string `xml:"originalErrorIdentifier"`
OriginalErrorname OriginalError `xml:"originalErrorName"`
ProductionLoss float64 `xml:"productionLoss"`
Comment string `xml:"string"`
ConfirmNeeded bool `xml:"confirmNeeded"`
ConfirmUserId int64 `xml:"confirmUserId"`
ConfirmTime time.Time `xml:"confirmTime"`
ParentRSID int64 `xml:"Parent_RSID"`
NoChildren int64 `xml:"noChildren"`
}
type MultiLangText ¶ added in v0.0.4
type OriginalError ¶ added in v0.0.4
type OriginalError struct {
XMLName xml.Name `xml:"originalErrorName"`
Text MultiLangText `xml:"multiLangText"`
}
type RotorSoftClient ¶
type RotorSoftClient struct {
HTTPClient *http.Client
URL string
Username string
Password string
Helper *Helper
}
func (*RotorSoftClient) GetChildLogbookEntries ¶ added in v0.0.4
func (r *RotorSoftClient) GetChildLogbookEntries(parentLogEntryId int64, batchSize int) (*GetChildLogbookEntriesResponse, error)
func (*RotorSoftClient) GetChildLogbookEntriesWithOffset ¶ added in v0.0.4
func (r *RotorSoftClient) GetChildLogbookEntriesWithOffset(parentLogEntryId int64, offsetLogbookEntryId int64, batchSize int) (*GetChildLogbookEntriesWithOffsetResponse, error)
func (*RotorSoftClient) GetLastLogbookEntriesForPowerUnit ¶ added in v0.0.4
func (r *RotorSoftClient) GetLastLogbookEntriesForPowerUnit(powerUnitIdentifier string, batchSize int) (*GetLastLogbookEntriesForPowerUnitResponse, error)
func (*RotorSoftClient) GetLastLogbookEntriesForPowerUnitWithOffset ¶ added in v0.0.4
func (r *RotorSoftClient) GetLastLogbookEntriesForPowerUnitWithOffset(powerUnitIdentifier string, offsetLogbookEntryId int64, batchSize int) (*GetLastLogbookEntriesForPowerUnitWithOffsetResponse, error)
func (*RotorSoftClient) GetLastLogbookEntryForPowerUnit ¶ added in v0.0.4
func (r *RotorSoftClient) GetLastLogbookEntryForPowerUnit(powerUnitIdentifier string) (*GetLastLogbookEntryForPowerUnitResponse, error)
type RotorsoftError ¶ added in v0.0.4
type RotorsoftError struct {
XMLName xml.Name `xml:"rotorsoftErrorName"`
Text MultiLangText `xml:"multiLangText"`
}
Click to show internal directories.
Click to hide internal directories.