services

package
v0.0.0-...-6e56508 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoNextPage = errors.New("no next page")
View Source
var ErrNoPrevPage = errors.New("no prev page")

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	resources.Attribute
}

type AttributePage

type AttributePage struct {
	resources.AttributePage
	// contains filtered or unexported fields
}

func (AttributePage) Next

func (d AttributePage) Next() (res AttributePage, err error)

func (AttributePage) Prev

func (d AttributePage) Prev() (res AttributePage, err error)

type AttributeService

type AttributeService struct {
	// contains filtered or unexported fields
}

func NewAttributeService

func NewAttributeService(client *http.Client) AttributeService

func (AttributeService) Endpoint

func (d AttributeService) Endpoint() string

func (AttributeService) EndpointWithParams

func (d AttributeService) EndpointWithParams() string

func (AttributeService) ID

func (d AttributeService) ID(i int) (res Attribute, err error)

func (AttributeService) List

func (d AttributeService) List() (res AttributePage, err error)

func (AttributeService) Name

func (d AttributeService) Name(s string) (res Attribute, err error)

func (AttributeService) WithQueryParams

type Digimon

type Digimon struct {
	resources.Digimon
}

type DigimonPage

type DigimonPage struct {
	resources.DigimonPage
	// contains filtered or unexported fields
}

func (DigimonPage) Next

func (d DigimonPage) Next() (res DigimonPage, err error)

func (DigimonPage) Prev

func (d DigimonPage) Prev() (res DigimonPage, err error)

type DigimonService

type DigimonService struct {
	// contains filtered or unexported fields
}

func NewDigimonService

func NewDigimonService(client *http.Client) DigimonService

func (DigimonService) Endpoint

func (d DigimonService) Endpoint() string

func (DigimonService) EndpointWithParams

func (d DigimonService) EndpointWithParams() string

func (DigimonService) ID

func (d DigimonService) ID(i int) (res Digimon, err error)

func (DigimonService) List

func (d DigimonService) List() (res DigimonPage, err error)

func (DigimonService) Name

func (d DigimonService) Name(s string) (res Digimon, err error)

func (DigimonService) WithQueryParams

type Level

type Level struct {
	resources.Level
}

type LevelPage

type LevelPage struct {
	resources.LevelPage
	// contains filtered or unexported fields
}

func (LevelPage) Next

func (d LevelPage) Next() (res LevelPage, err error)

func (LevelPage) Prev

func (d LevelPage) Prev() (res LevelPage, err error)

type LevelService

type LevelService struct {
	// contains filtered or unexported fields
}

func NewLevelService

func NewLevelService(client *http.Client) LevelService

func (LevelService) Endpoint

func (d LevelService) Endpoint() string

func (LevelService) EndpointWithParams

func (d LevelService) EndpointWithParams() string

func (LevelService) ID

func (d LevelService) ID(i int) (res Level, err error)

func (LevelService) List

func (d LevelService) List() (res LevelPage, err error)

func (LevelService) Name

func (d LevelService) Name(s string) (res Level, err error)

func (LevelService) WithQueryParams

func (d LevelService) WithQueryParams(q resources.QueryParams) LevelService

type Skill

type Skill struct {
	resources.Skill
}

type SkillPage

type SkillPage struct {
	resources.SkillPage
	// contains filtered or unexported fields
}

func (SkillPage) Next

func (d SkillPage) Next() (res SkillPage, err error)

func (SkillPage) Prev

func (d SkillPage) Prev() (res SkillPage, err error)

type SkillService

type SkillService struct {
	// contains filtered or unexported fields
}

func NewSkillService

func NewSkillService(client *http.Client) SkillService

func (SkillService) Endpoint

func (d SkillService) Endpoint() string

func (SkillService) EndpointWithParams

func (d SkillService) EndpointWithParams() string

func (SkillService) ID

func (d SkillService) ID(i int) (res Skill, err error)

func (SkillService) List

func (d SkillService) List() (res SkillPage, err error)

func (SkillService) Name

func (d SkillService) Name(s string) (res Skill, err error)

func (SkillService) WithQueryParams

func (d SkillService) WithQueryParams(q resources.QueryParams) SkillService

type Type

type Type struct {
	resources.Type
}

type TypePage

type TypePage struct {
	resources.TypePage
	// contains filtered or unexported fields
}

func (TypePage) Next

func (d TypePage) Next() (res TypePage, err error)

func (TypePage) Prev

func (d TypePage) Prev() (res TypePage, err error)

type TypeService

type TypeService struct {
	// contains filtered or unexported fields
}

func NewTypeService

func NewTypeService(client *http.Client) TypeService

func (TypeService) Endpoint

func (d TypeService) Endpoint() string

func (TypeService) EndpointWithParams

func (d TypeService) EndpointWithParams() string

func (TypeService) ID

func (d TypeService) ID(i int) (res Type, err error)

func (TypeService) List

func (d TypeService) List() (res TypePage, err error)

func (TypeService) Name

func (d TypeService) Name(s string) (res Type, err error)

func (TypeService) WithQueryParams

func (d TypeService) WithQueryParams(q resources.QueryParams) TypeService

Jump to

Keyboard shortcuts

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