v3

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func (*Helper) GetLogbookEntriesByDateRangeForPowerUnits added in v0.0.4

func (r *Helper) GetLogbookEntriesByDateRangeForPowerUnits(powerUnitIdentifiers []string, from time.Time, to time.Time) (*map[string]*[]LogbookEntry, error)

type Item added in v0.0.4

type Item struct {
	Key   string `xml:"key,attr"`
	Value string `xml:"value,attr"`
}

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 MultiLangText struct {
	XMLName xml.Name `xml:"multiLangText"`
	Items   []Item   `xml:"item"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL