device

package
v0.0.0-...-d2c9018 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BaseEndpoint = "http://www.gsmarena.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ID          int    `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Slug        string `json:"slug,omitempty"`
	Image       string `json:"image,omitempty"`
	Description string `json:"description,omitempty"`
}

type DeviceList

type DeviceList struct {
	Items       []Device `json:"items,omitempty"`
	CurrentPage int      `json:"current_page,omitempty"`
	TotalPage   int      `json:"total_page,omitempty"`
}

func GetDeviceList

func GetDeviceList(brandSlug string, page int) (deviceList DeviceList, err error)

func (*DeviceList) AddDevice

func (list *DeviceList) AddDevice(device Device)

Jump to

Keyboard shortcuts

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