services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 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 Data

type Data struct {
	Name string `json:"instance_name"`
}
type Link struct {
	Href string `json:"href"`
}
type Links struct {
	Instance Link `json:"service_instance"`
}

type Pagination

type Pagination struct {
	TotalResults int `json:"total_results"`
	TotalPages   int `json:"total_pages"`
}

type Resource

type Resource struct {
	Data  Data  `json:"data"`
	Links Links `json:"links"`
}

type Response

type Response struct {
	Pagination Pagination `json:"pagination"`
	Resources  []Resource `json:"resources"`
}

func ParseResponse

func ParseResponse(response string) Response

Jump to

Keyboard shortcuts

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