device

package
v0.0.0-...-2109d14 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detail

func Detail(c *gin.Context)

func Images

func Images(img chan []*Image, doc *goquery.Document)

func LatestDevices

func LatestDevices(c *gin.Context)

Get latest devices

func Register

func Register(r *gin.RouterGroup)

Types

type Device

type Device struct {
	Name   string           `json:"name"`
	Specs  map[string]Specs `json:"specs"`
	Images []*Image         `json:"images"`
}

type Image

type Image struct {
	Name string `json:"name"`
	Src  string `json:"src"`
}

type Spec

type Spec struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Specs

type Specs []*Spec

Jump to

Keyboard shortcuts

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