Documentation ¶
Index ¶
- type NounResource
- func (s NounResource) Create(obj interface{}, r api2go.Request) (api2go.Responder, error)
- func (s NounResource) Delete(id string, r api2go.Request) (api2go.Responder, error)
- func (s NounResource) FindAll(r api2go.Request) (api2go.Responder, error)
- func (s NounResource) FindOne(ID string, r api2go.Request) (api2go.Responder, error)
- func (s NounResource) PaginatedFindAll(r api2go.Request) (uint, api2go.Responder, error)
- func (s NounResource) Update(obj interface{}, r api2go.Request) (api2go.Responder, error)
- type Response
- type TensePresIndResource
- func (s TensePresIndResource) Create(obj interface{}, r api2go.Request) (api2go.Responder, error)
- func (s TensePresIndResource) Delete(id string, r api2go.Request) (api2go.Responder, error)
- func (s TensePresIndResource) FindAll(r api2go.Request) (api2go.Responder, error)
- func (s TensePresIndResource) FindOne(ID string, r api2go.Request) (api2go.Responder, error)
- func (s TensePresIndResource) PaginatedFindAll(r api2go.Request) (uint, api2go.Responder, error)
- func (s TensePresIndResource) Update(obj interface{}, r api2go.Request) (api2go.Responder, error)
- type VerbResource
- func (s VerbResource) Create(obj interface{}, r api2go.Request) (api2go.Responder, error)
- func (s VerbResource) Delete(id string, r api2go.Request) (api2go.Responder, error)
- func (s VerbResource) FindAll(r api2go.Request) (api2go.Responder, error)
- func (s VerbResource) FindOne(ID string, r api2go.Request) (api2go.Responder, error)
- func (s VerbResource) PaginatedFindAll(r api2go.Request) (uint, api2go.Responder, error)
- func (s VerbResource) Update(obj interface{}, r api2go.Request) (api2go.Responder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NounResource ¶
type NounResource struct {
NounStorage storage.NounStorage
}
NounResource for api2go routes
func (NounResource) FindOne ¶
FindOne to satisfy `api2go.DataSource` interface this method should return the noun with the given ID, otherwise an error
func (NounResource) PaginatedFindAll ¶
PaginatedFindAll can be used to load nouns in chunks
type Response ¶
type Response struct { Res interface{} Code int }
The Response struct implements api2go.Responder
func (Response) StatusCode ¶
StatusCode sets the return status code
type TensePresIndResource ¶
type TensePresIndResource struct {
TensePresIndStorage storage.TensePresIndStorage
}
TensePresIndResource for api2go routes
func (TensePresIndResource) FindOne ¶
FindOne to satisfy `api2go.DataSource` interface this method should return the tense with the given ID, otherwise an error
func (TensePresIndResource) PaginatedFindAll ¶
PaginatedFindAll
type VerbResource ¶
type VerbResource struct {
VerbStorage storage.VerbStorage
}
VerbResource for api2go routes
func (VerbResource) FindOne ¶
FindOne to satisfy `api2go.DataSource` interface this method should return the verb with the given ID, otherwise an error
func (VerbResource) PaginatedFindAll ¶
PaginatedFindAll