Documentation ¶
Index ¶
- type CollectionLink
- type DBResource
- type DBResourceDriver
- func (dbr DBResourceDriver) Create(data Resource) (int64, error)
- func (dbr DBResourceDriver) Delete(id int64) (int64, error)
- func (dbr DBResourceDriver) Find(id int64) (res Resource, err error)
- func (dbr DBResourceDriver) NewResource(payload interface{}) DBResource
- func (dbr DBResourceDriver) Query(q Query) (ListResult, error)
- func (dbr DBResourceDriver) Update(id int64, changes map[string]interface{}) (int64, error)
- type Link
- type LinkList
- type ListResult
- type Query
- type Resource
- type ResourceDriver
- type ResourceLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionLink ¶
func (*CollectionLink) Render ¶
func (cl *CollectionLink) Render() string
type DBResource ¶
func (DBResource) GetId ¶
func (r DBResource) GetId() int64
func (DBResource) GetLinks ¶
func (r DBResource) GetLinks() LinkList
func (DBResource) GetPayload ¶
func (r DBResource) GetPayload() interface{}
func (DBResource) GetResourceName ¶
func (r DBResource) GetResourceName() string
func (DBResource) HasId ¶
func (r DBResource) HasId() bool
type DBResourceDriver ¶
type DBResourceDriver struct { Gw tablegateway.AutomatableTableDataGateway ResourceName string }
func (DBResourceDriver) NewResource ¶
func (dbr DBResourceDriver) NewResource(payload interface{}) DBResource
func (DBResourceDriver) Query ¶
func (dbr DBResourceDriver) Query(q Query) (ListResult, error)
type ListResult ¶
type ResourceDriver ¶
type ResourceLink ¶
func (*ResourceLink) Render ¶
func (rl *ResourceLink) Render() string
Click to show internal directories.
Click to hide internal directories.