helpers

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CardURL

func CardURL(cardID interface{}) string

CardHref returns the resource href.

func CategoryURL

func CategoryURL(categoryUUID interface{}) string

func DecodeUUID

func DecodeUUID(uuid string) ([]byte, error)

func EncodeUUID

func EncodeUUID(uuid []byte) string

func FactionURL

func FactionURL(factionID interface{}) string

FactionHref returns the resource href.

func GeneratePrevNextPageHref

func GeneratePrevNextPageHref(count int, limit int, offset int, href string) (*string, *string)

func GroupURL

func GroupURL(groupID interface{}) string

GroupHref returns the resource href.

func IsModified added in v0.5.6

func IsModified(notModifiedSince string, lastModified time.Time) bool

func IsNotFoundError added in v0.5.7

func IsNotFoundError(err error) bool

func LastModified added in v0.5.6

func LastModified(data *goa.ResponseData, date time.Time)

func MediaURL

func MediaURL(filename interface{}) string

TypeHref returns the resource href.

func RarityURL

func RarityURL(rarityID interface{}) string

RarityHref returns the resource href.

func SwaggerURL

func SwaggerURL() string

func ValidateLimitOffset

func ValidateLimitOffset(count int, limit int, offset int) (int, int)

func VariationURL

func VariationURL(cardID interface{}, variationID interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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