Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct { LinkOpts Metadata CollectionOpts `json:"_metadata"` Embedded Embedded `json:"_embedded"` }
func NewCollection ¶
func NewCollection(basePath string, query db.SlicedQueryObject, mapFunc MappingFunc) *Collection
type CollectionOpts ¶
type LinkResolver ¶
type MappingFunc ¶
type MappingFunc func(e interface{}) (interface{}, error)
type ResponseHandler ¶
type ResponseHandler struct {
// contains filtered or unexported fields
}
func NewResponseHandler ¶
func NewResponseHandler() *ResponseHandler
func (*ResponseHandler) Handle ¶
func (r *ResponseHandler) Handle(basePath string, query db.QueryObject) interface{}
func (*ResponseHandler) Register ¶
func (r *ResponseHandler) Register(i interface{}, m MappingFunc)
type TypeErr ¶
type TypeErr struct {
// contains filtered or unexported fields
}
func NewTypeErr ¶
func NewTypeErr(expected interface{}, actual interface{}) TypeErr
type UnsupportedResultTypeErr ¶
type UnsupportedResultTypeErr struct {
// contains filtered or unexported fields
}
func NewUnsupportedQueryType ¶
func NewUnsupportedQueryType(result interface{}) UnsupportedResultTypeErr
func (UnsupportedResultTypeErr) Error ¶
func (e UnsupportedResultTypeErr) Error() string
Click to show internal directories.
Click to hide internal directories.