http

package
v0.0.0-...-e8be2bb Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PetCreator

type PetCreator interface {
	CreatePet(context.Context, core.Pet) error
}

type PetFetcher

type PetFetcher interface {
	LookupPet(context.Context, core.Identity) (core.Pet, error)
	LookupPetsAfterKey(context.Context, core.Identity, int) ([]core.Pet, error)
}

type PetShopAPI

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

func NewPetShopAPI

func NewPetShopAPI(fetcher PetFetcher, creator PetCreator) *PetShopAPI

func (PetShopAPI) Create

func (shop PetShopAPI) Create() µ.Routable

func (PetShopAPI) List

func (shop PetShopAPI) List() µ.Routable

func (PetShopAPI) Lookup

func (shop PetShopAPI) Lookup() µ.Routable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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