dofustyp

package
v0.0.0-...-3376678 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MPL-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package dofustyp is a library of basic data types for Dofus.

Index

Constants

This section is empty.

Variables

View Source
var ChatChannels = map[ChatChannel]string{
	ChatChannelInfo:        "Info",
	ChatChannelPublic:      "Public",
	ChatChannelPrivate:     "Private",
	ChatChannelGroup:       "Group",
	ChatChannelTeam:        "Team",
	ChatChannelGuild:       "Guild",
	ChatChannelAlignment:   "Alignment",
	ChatChannelRecruitment: "Recruitment",
	ChatChannelTrading:     "Trading",
	ChatChannelNewbies:     "Newbies",
	ChatChannelAdmin:       "Admin",
}
View Source
var Communities = map[Community]string{
	CommunityFrenchSpeaking:          "French-speaking",
	CommunityUnitedKingdomAndIreland: "United Kingdom & Ireland",
	CommunityInternational:           "International",
	CommunityGerman:                  "German",
	CommunitySpanishSpeaking:         "Spanish-speaking",
	CommunityRussian:                 "Russian",
	CommunityBrazilian:               "Brazilian",
	CommunityDutch:                   "Dutch",
	CommunityItalian:                 "Italian",
	CommunityJapanese:                "Japanese",
	CommunityDebug:                   "Debug",
}
View Source
var ErrInvalidValue = errors.New("invalid value")
View Source
var Genders = map[Gender]string{
	GenderMale:   "Male",
	GenderFemale: "Female",
}

Functions

This section is empty.

Types

type AccountName

type AccountName string

func (AccountName) Validate

func (n AccountName) Validate() error

type ChatChannel

type ChatChannel rune
const (
	ChatChannelInfo        ChatChannel = 'i'
	ChatChannelPublic      ChatChannel = '*'
	ChatChannelPrivate     ChatChannel = 'p'
	ChatChannelGroup       ChatChannel = '$'
	ChatChannelTeam        ChatChannel = '#'
	ChatChannelGuild       ChatChannel = '%'
	ChatChannelAlignment   ChatChannel = '!'
	ChatChannelRecruitment ChatChannel = '?'
	ChatChannelTrading     ChatChannel = ':'
	ChatChannelNewbies     ChatChannel = '^'
	ChatChannelAdmin       ChatChannel = '@'
)

func (ChatChannel) String

func (a ChatChannel) String() string

func (ChatChannel) Validate

func (a ChatChannel) Validate() error

type Community

type Community int
const (
	CommunityFrenchSpeaking Community = iota
	CommunityUnitedKingdomAndIreland
	CommunityInternational
	CommunityGerman
	CommunitySpanishSpeaking
	CommunityRussian
	CommunityBrazilian
	CommunityDutch
	CommunityItalian Community = iota + 1
	CommunityJapanese
	CommunityDebug Community = 99
)

func (Community) String

func (c Community) String() string

func (Community) Validate

func (c Community) Validate() error

type Email

type Email string

func (Email) Validate

func (e Email) Validate() error

type Gender

type Gender int
const (
	GenderMale Gender = iota
	GenderFemale
)

func (Gender) String

func (g Gender) String() string

func (Gender) Validate

func (g Gender) Validate() error

type Hash

type Hash string

func (Hash) Validate

func (h Hash) Validate() error

type Nickname

type Nickname string

func (Nickname) Validate

func (n Nickname) Validate() error

type Password

type Password string

func (Password) Validate

func (p Password) Validate() error

Jump to

Keyboard shortcuts

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