resources

package
v0.0.0-...-9bd2c4f Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Links struct {
	Self  string `json:"self,omitempty"`
	First string `json:"first,omitempty"`
	Prev  string `json:"prev,omitempty"`
	Next  string `json:"next,omitempty"`
	Last  string `json:"last,omitempty"`
}

type Relationship

type Relationship struct {
	Links Links `json:"links"`
}

type Resource

type Resource struct {
	Id            string                   `json:"id,omitempty"`
	Type          string                   `json:"type"`
	Relationships map[string]*Relationship `json:"relationships"`
}

func (*Resource) GetId

func (r *Resource) GetId() string

func (*Resource) GetRelationships

func (r *Resource) GetRelationships() map[string]*Relationship

func (*Resource) GetType

func (r *Resource) GetType() string

Jump to

Keyboard shortcuts

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