search

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveMemberRange

type ActiveMemberRange string

ActiveMemberRange represents the active member range filter of a search.

const (
	OneToTen         ActiveMemberRange = "1-10"
	ElevenToThirty   ActiveMemberRange = "11-30"
	ThirtyOneToFifty ActiveMemberRange = "31-50"
	FiftyOnePlus     ActiveMemberRange = "51-"
)

Active member range for searches.

type CWLSOptions

type CWLSOptions struct {
	Name                      string
	DC                        string
	Order                     LinkshellSearchOrder
	ActiveMembers             ActiveMemberRange
	CommunityFinderRecruiting bool
}

CWLSOptions defines extra search information that can help to narrow down a CWLS search.

func (*CWLSOptions) BuildURI

func (s *CWLSOptions) BuildURI(lang string) string

BuildURI returns a constructed URI for the provided search options.

type CharacterOptions

type CharacterOptions struct {
	Name         string
	World        string
	DC           string
	Lang         Lang
	GrandCompany string
	Race         string
	Tribe        string
	Order        CharacterSearchOrder
}

CharacterOptions defines extra search information that can help to narrow down a search.

func (*CharacterOptions) BuildURI

func (s *CharacterOptions) BuildURI(
	grandCompanyTable *exports.GrandCompanyTable,
	raceTable *exports.RaceTable,
	tribeTable *exports.TribeTable,
	lang string,
) string

BuildURI returns a constructed URI for the provided search options.

type CharacterSearchOrder

type CharacterSearchOrder uint8

CharacterSearchOrder represents the search result ordering of a Lodestone character search.

const (
	OrderCharaNameAToZ CharacterSearchOrder = iota + 1
	OrderCharaNameZToA
	OrderCharaWorldAtoZ
	OrderCharaWorldZtoA
	OrderCharaLevelDescending
	OrderCharaLevelAscending
)

Search ordering for character searches.

type FreeCompanyHousingStatus

type FreeCompanyHousingStatus uint8

FreeCompanyHousingStatus represents the housing status of a Free Company for the purpose of searches.

const (
	FCHousingAll FreeCompanyHousingStatus = iota
	FCHousingNoEstateOrPlot
	FCHousingPlotOnly
	FCHousingEstateBuilt
)

Housing status for Free Company searches.

type FreeCompanyOptions

type FreeCompanyOptions struct {
	Name                      string
	World                     string
	DC                        string
	ActiveTime                models.FreeCompanyActiveState
	Recruitment               models.FreeCompanyRecruitingState
	Order                     FreeCompanySearchOrder
	HousingStatus             FreeCompanyHousingStatus
	ActiveMembers             ActiveMemberRange
	CommunityFinderRecruiting bool
}

FreeCompanyOptions defines extra search information that can help to narrow down a Free Company search.

func (*FreeCompanyOptions) BuildURI

func (s *FreeCompanyOptions) BuildURI(lang string) string

BuildURI returns a constructed URI for the provided search options.

type FreeCompanySearchOrder

type FreeCompanySearchOrder uint8

FreeCompanySearchOrder represents the search result ordering of a Lodestone Free Company search.

const (
	OrderFCNameAToZ FreeCompanySearchOrder = iota + 1
	OrderFCNameZToA
	OrderFCMembershipHighToLow
	OrderFCMembershipLowToHigh
	OrderFCDateFoundedDescending
	OrderFCDateFoundedAscending
)

Search ordering for Free Company searches.

type Lang

type Lang uint8

Lang represents character language.

const (
	NoneLang Lang = 1 << iota
	JA
	EN
	DE
	FR
)

Language

type LinkshellOptions

type LinkshellOptions struct {
	Name                      string
	World                     string
	DC                        string
	Order                     LinkshellSearchOrder
	ActiveMembers             ActiveMemberRange
	CommunityFinderRecruiting bool
}

LinkshellOptions defines extra search information that can help to narrow down a linkshell search.

func (*LinkshellOptions) BuildURI

func (s *LinkshellOptions) BuildURI(lang string) string

BuildURI returns a constructed URI for the provided search options.

type LinkshellSearchOrder

type LinkshellSearchOrder uint8

LinkshellSearchOrder represents the search result ordering of a Lodestone CWLS search.

const (
	OrderLinkshellNameAToZ LinkshellSearchOrder = iota + 1
	OrderLinkshellNameZToA
	OrderLinkshellMembershipHighToLow
	OrderLinkshellMembershipLowToHigh
)

Search ordering for linkshell and CWLS searches.

type PVPTeamOptions

type PVPTeamOptions struct {
	Name                      string
	DC                        string
	Order                     PVPTeamSearchOrder
	CommunityFinderRecruiting bool
}

PVPTeamOptions defines extra search information that can help to narrow down a PVP team search.

func (*PVPTeamOptions) BuildURI

func (s *PVPTeamOptions) BuildURI(lang string) string

BuildURI returns a constructed URI for the provided search options.

type PVPTeamSearchOrder

type PVPTeamSearchOrder uint8

PVPTeamSearchOrder represents the search result ordering of a Lodestone CWLS search.

const (
	OrderPVPTeamNameAToZ PVPTeamSearchOrder = iota + 1
	OrderPVPTeamNameZToA
)

Search ordering for PVP Team searches.

Jump to

Keyboard shortcuts

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