ffxiv

package module
v0.0.0-...-01fb498 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

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

This section is empty.

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