Help us shape the future of Go! Take the 2026 Go Developer Survey

products

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResponse

type GetResponse struct {
	Products []Product `json:"products"`
}

GetResponse response

type GetResult

type GetResult struct {
	golangsdk.Result
}

GetResult contains the body of getting detailed

func Get

func Get(client *golangsdk.ServiceClient) (r GetResult)

Get products

func (GetResult) Extract

func (r GetResult) Extract() (*GetResponse, error)

Extract from GetResult

type Product

type Product struct {
	Price        float64 `json:"price"`
	Currency     string  `json:"currency"`
	ProductID    string  `json:"product_id"`
	SpecCode     string  `json:"spec_code"`
	SpecDetails  string  `json:"spec_details"`
	ChargingType string  `json:"charging_type"`
	SpecDetails2 string  `json:"spec_details2"`
	ProdType     string  `json:"prod_type"`
}

Product for dcs

Jump to

Keyboard shortcuts

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