garbanzo

package
v0.0.0-...-b7effc6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCollectionRoutes

func MapCollectionRoutes(baseURL string, router *mux.Router, middleware alice.Chain, garbanzoService GarbanzoService)

func MapRoutes

func MapRoutes(baseURL string, router *mux.Router, middleware alice.Chain, garbanzoService GarbanzoService)

Types

type Garbanzo

type Garbanzo struct {
	Link         string  `json:"link"`
	GarbanzoType string  `json:"type"`
	DiameterMM   float32 `json:"diameter-mm"`
}

type GarbanzoService

type GarbanzoService interface {
	FetchByOctoName(ctx context.Context, octoName string) (garbanzos []data.Garbanzo, err error)
	FetchByAPIUUIDAndOctoName(ctx context.Context, apiUUID uuid.UUID, octoName string) (garbanzo data.Garbanzo, err error)
	Create(ctx context.Context, octoName string, garbanzoIn data.Garbanzo) (garbanzoOut data.Garbanzo, err error)
	DeleteByAPIUUIDAndOctoName(ctx context.Context, apiUUID uuid.UUID, octoName string) (err error)
}

Jump to

Keyboard shortcuts

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