ffxiv

package module
v0.0.0-...-2917a8e Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

go-ffxiv

Go client (scraper) for some FFXIV stuff.

License

MPL 2.0.

Documentation

Overview

Package ffxiv implements functions to read some data from FFXIV website.

Index

Constants

View Source
const Version = 1

Version is used to keep track of breaking changes in the structs.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	WorldStatus() ([]WorldStatus, error)
}

func NewClient

func NewClient() (Client, error)

type ServerCategory

type ServerCategory string
const (
	CategoryStandard  ServerCategory = "Standard"
	CategoryPreferred ServerCategory = "Preferred"
	CategoryCongested ServerCategory = "Congested"
	CategoryNew       ServerCategory = "New"
)

type ServerStatus

type ServerStatus string
const (
	StatusUnknown            ServerStatus = ""
	StatusMaintenance        ServerStatus = "maintenance"
	StatusPartialMaintenance ServerStatus = "partial_maintenance"
	StatusOnline             ServerStatus = "online"
)

type WorldStatus

type WorldStatus struct {
	Group string

	Name         string
	Category     ServerCategory
	ServerStatus ServerStatus

	CanCreateNewCharacters bool
}

func ParseWorldStatusPage

func ParseWorldStatusPage(r io.Reader) ([]WorldStatus, error)

Jump to

Keyboard shortcuts

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