Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Representor ¶
type Representor interface {
GetBody() interface{}
GetLink(rt string) (*link.Link, error)
GetLinks(rt string) []link.Link
}
Representor interface represents the representation of the body of the request or response.
type Resource ¶
type Resource struct {
Client Getting
URI *url.URL
ContentType string
Representor Representor
Variables map[string]string
// contains filtered or unexported fields
}
Resource represents endpoint on a server. The endpoint has a uri, you might for example be able to GET its presentation. A resource may also have a list of links on them, pointing to other resources.
func (*Resource) Follow ¶
Follow follows a relationship, based on its reltype. For example, this might be 'alternate', 'item', 'edit', or a custom url-based one.
Click to show internal directories.
Click to hide internal directories.