Documentation ¶
Index ¶
- func AppendQueryString(base, query string) string
- type Link
- type Links
- func (l Links) Add(link Link)
- func (l Links) Canonical(uri string)
- func (l Links) CollectionCR(base string, curPage page.Page, canWrite bool)
- func (l Links) Create(uri string)
- func (l Links) Delete(uri string)
- func (l Links) Edit(uri string)
- func (l Links) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (l Links) Next(base string, curPage page.Page)
- func (l Links) Previous(base string, curPage page.Page)
- func (l Links) RecordRUD(uri string, canWrite bool)
- func (l Links) Save(uri string)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendQueryString ¶
AppendQueryString adds a field to a query string.
Types ¶
type Link ¶
type Link struct { Rel string `json:"-" xml:"rel,attr"` Href string `json:"href" xml:"href,attr"` Method string `json:"method,omitempty" xml:"method,attr,omitempty"` XMLName struct{} `json:"-" xml:"link"` }
Link is a hypermedia/hyperdata related link.
type Links ¶
Links represents a collection of Links on an entity.
func (Links) CollectionCR ¶
CollectionCR creates the collection create and retrieve links.
func (Links) MarshalXML ¶
MarshalXML fulfills xml.Marshaler
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HTTP requests.
Click to show internal directories.
Click to hide internal directories.