Documentation
¶
Index ¶
- Constants
- Variables
- type APIError
- type Client
- func (c *Client) StartConnection(ctx context.Context, deviceName string) (DeviceAuthorization, error)
- func (c *Client) SubmitDropObservations(ctx context.Context, accessToken string, events []DropObservation) error
- func (c *Client) SubmitKillObservations(ctx context.Context, accessToken string, events []KillObservation) error
- func (c *Client) SubmitPlaneOfSkyEvents(ctx context.Context, accessToken, character, server string, ...) error
- func (c *Client) UploadInventory(ctx context.Context, accessToken, inventoryPath string, ...) (UploadResult, error)
- func (c *Client) WaitForToken(ctx context.Context, authorization DeviceAuthorization) (Token, error)
- type DeviceAuthorization
- type DropObservation
- type KillObservation
- type PlaneOfSkyEvent
- type State
- type Store
- func (s Store) AcquireLease(name string, now time.Time, duration time.Duration) (bool, time.Duration, error)
- func (s Store) AcquireUploadLease(now time.Time, duration time.Duration) (bool, time.Duration, error)
- func (s Store) Load() (State, error)
- func (s Store) ReleaseLease(name string) error
- func (s Store) Save(state State) error
- type Token
- type UploadMetadata
- type UploadResult
Constants ¶
View Source
const ( ClientID = "eql-log-parser" DefaultBaseURL = "https://eqldb.org" BaseURLEnv = "EQDPS_EQLDB_BASE_URL" )
Variables ¶
View Source
var ManualRaces = []string{
"Human",
"Barbarian",
"Erudite",
"Wood Elf",
"High Elf",
"Dark Elf",
"Half Elf",
"Dwarf",
"Troll",
"Ogre",
"Halfling",
"Gnome",
"Iksar",
"Froglok",
"Kerran",
}
ManualRaces mirrors the EQLDB playable-race catalogue. Automatically parsed /who races are intentionally not restricted to this list: unknown races and illusions must still reach the server for classification.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) StartConnection ¶
func (*Client) SubmitDropObservations ¶ added in v0.2.2
func (*Client) SubmitKillObservations ¶ added in v0.2.2
func (*Client) SubmitPlaneOfSkyEvents ¶ added in v0.2.2
func (*Client) UploadInventory ¶
func (c *Client) UploadInventory(ctx context.Context, accessToken, inventoryPath string, metadata UploadMetadata) (UploadResult, error)
func (*Client) WaitForToken ¶
type DeviceAuthorization ¶
type DropObservation ¶ added in v0.2.2
type KillObservation ¶ added in v0.2.2
type PlaneOfSkyEvent ¶ added in v0.2.2
type State ¶
type Store ¶
type Store struct {
Path string
}
func DefaultStore ¶
func (Store) AcquireLease ¶ added in v0.2.2
func (Store) AcquireUploadLease ¶
func (Store) ReleaseLease ¶ added in v0.2.2
type UploadMetadata ¶
Click to show internal directories.
Click to hide internal directories.