Documentation ¶
Index ¶
- Variables
- type GameEventHandler
- type Impl
- func (service *Impl) GetAlmanaxByDate(ctx context.Context, date time.Time, language string) (*dodugo.AlmanaxEntry, error)
- func (service *Impl) GetAlmanaxByRange(ctx context.Context, daysDuration int64, language string) ([]dodugo.AlmanaxEntry, error)
- func (service *Impl) GetConsumableByID(ctx context.Context, itemID int64, language string) (*dodugo.Resource, error)
- func (service *Impl) GetCosmeticByID(ctx context.Context, itemID int64, language string) (*dodugo.Weapon, error)
- func (service *Impl) GetCosmeticByQuery(ctx context.Context, query, language string) (*dodugo.Weapon, error)
- func (service *Impl) GetEquipmentByID(ctx context.Context, itemID int64, language string) (*dodugo.Weapon, error)
- func (service *Impl) GetEquipmentByQuery(ctx context.Context, query, language string) (*dodugo.Weapon, error)
- func (service *Impl) GetItemType(itemType string) amqp.ItemType
- func (service *Impl) GetMountByID(ctx context.Context, itemID int64, language string) (*dodugo.Mount, error)
- func (service *Impl) GetMountByQuery(ctx context.Context, query, language string) (*dodugo.Mount, error)
- func (service *Impl) GetQuestItemByID(ctx context.Context, itemID int64, language string) (*dodugo.Resource, error)
- func (service *Impl) GetResourceByID(ctx context.Context, itemID int64, language string) (*dodugo.Resource, error)
- func (service *Impl) GetSetByID(ctx context.Context, setID int64, language string) (*dodugo.EquipmentSet, error)
- func (service *Impl) GetSetByQuery(ctx context.Context, query, language string) (*dodugo.EquipmentSet, error)
- func (service *Impl) GetSets(ctx context.Context) ([]dodugo.SetListEntry, error)
- func (service *Impl) ListenGameEvent(handler GameEventHandler)
- func (service *Impl) SearchAlmanaxEffects(ctx context.Context, query, language string) ([]dodugo.GetMetaAlmanaxBonuses200ResponseInner, error)
- func (service *Impl) SearchAnyItems(ctx context.Context, query, language string) ([]dodugo.GetGameSearch200ResponseInner, error)
- func (service *Impl) SearchCosmetics(ctx context.Context, query, language string) ([]dodugo.ItemListEntry, error)
- func (service *Impl) SearchEquipments(ctx context.Context, query, language string) ([]dodugo.ItemListEntry, error)
- func (service *Impl) SearchMounts(ctx context.Context, query, language string) ([]dodugo.MountListEntry, error)
- func (service *Impl) SearchSets(ctx context.Context, query, language string) ([]dodugo.SetListEntry, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("cannot find the desired resource")
)
Functions ¶
This section is empty.
Types ¶
type GameEventHandler ¶
type GameEventHandler func(gameVersion string)
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) GetAlmanaxByDate ¶
func (*Impl) GetAlmanaxByRange ¶
func (*Impl) GetConsumableByID ¶
func (*Impl) GetCosmeticByID ¶
func (*Impl) GetCosmeticByQuery ¶
func (*Impl) GetEquipmentByID ¶
func (*Impl) GetEquipmentByQuery ¶
func (*Impl) GetMountByID ¶
func (*Impl) GetMountByQuery ¶
func (*Impl) GetQuestItemByID ¶
func (*Impl) GetResourceByID ¶
func (*Impl) GetSetByID ¶
func (*Impl) GetSetByQuery ¶
func (*Impl) ListenGameEvent ¶
func (service *Impl) ListenGameEvent(handler GameEventHandler)
func (*Impl) SearchAlmanaxEffects ¶
func (*Impl) SearchAnyItems ¶
func (*Impl) SearchCosmetics ¶
func (*Impl) SearchEquipments ¶
func (*Impl) SearchMounts ¶
func (*Impl) SearchSets ¶
type Service ¶
type Service interface { GetItemType(itemType string) amqp.ItemType SearchAnyItems(ctx context.Context, query, lg string) ([]dodugo.GetGameSearch200ResponseInner, error) SearchCosmetics(ctx context.Context, query, lg string) ([]dodugo.ItemListEntry, error) SearchEquipments(ctx context.Context, query, lg string) ([]dodugo.ItemListEntry, error) SearchMounts(ctx context.Context, query, lg string) ([]dodugo.MountListEntry, error) SearchSets(ctx context.Context, query, lg string) ([]dodugo.SetListEntry, error) SearchAlmanaxEffects(ctx context.Context, query, lg string) ([]dodugo.GetMetaAlmanaxBonuses200ResponseInner, error) GetConsumableByID(ctx context.Context, consumableID int64, lg string) (*dodugo.Resource, error) GetCosmeticByID(ctx context.Context, cosmeticID int64, lg string) (*dodugo.Weapon, error) GetEquipmentByID(ctx context.Context, equipmentID int64, lg string) (*dodugo.Weapon, error) GetMountByID(ctx context.Context, mountID int64, lg string) (*dodugo.Mount, error) GetQuestItemByID(ctx context.Context, questItemID int64, lg string) (*dodugo.Resource, error) GetResourceByID(ctx context.Context, resourceID int64, lg string) (*dodugo.Resource, error) GetSetByID(ctx context.Context, setID int64, lg string) (*dodugo.EquipmentSet, error) GetSets(ctx context.Context) ([]dodugo.SetListEntry, error) GetCosmeticByQuery(ctx context.Context, query, lg string) (*dodugo.Weapon, error) GetEquipmentByQuery(ctx context.Context, query, lg string) (*dodugo.Weapon, error) GetMountByQuery(ctx context.Context, query, lg string) (*dodugo.Mount, error) GetSetByQuery(ctx context.Context, query, lg string) (*dodugo.EquipmentSet, error) GetAlmanaxByDate(ctx context.Context, date time.Time, language string) (*dodugo.AlmanaxEntry, error) GetAlmanaxByRange(ctx context.Context, daysDuration int64, language string) ([]dodugo.AlmanaxEntry, error) ListenGameEvent(handler GameEventHandler) }
Click to show internal directories.
Click to hide internal directories.