common

package
v0.0.0-...-2a4d795 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemsResponse

type ItemsResponse interface {
	MetaGetter
	GetItems() []models.Item
}

type MetaGetter

type MetaGetter interface {
	GetTotal() int
	GetMaxResults() int
}

type MonstersResponse

type MonstersResponse interface {
	MetaGetter
	GetMonsters() []models.Monster
}

type Params

type Params struct {
	Where string
	Page  int
}

type PrayersResponse

type PrayersResponse interface {
	MetaGetter
	GetPrayers() []models.Prayer
}

type RequestExecutor

type RequestExecutor interface {
	ExecuteItemsRequest(context.Context, Params) (ItemsResponse, error)
	ExecuteMonstersRequest(context.Context, Params) (MonstersResponse, error)
	ExecutePrayersRequest(context.Context, Params) (PrayersResponse, error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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