Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetAction = NewAction(ghttp.MethodGet, empty, false, []string{ghttp.MethodGet}) PostAction = NewAction(ghttp.MethodPost, empty, false, []string{ghttp.MethodPost}) PutAction = NewAction(ghttp.MethodPut, empty, false, []string{ghttp.MethodPut}) PatchAction = NewAction(ghttp.MethodPatch, empty, false, []string{ghttp.MethodPatch}) DeleteAction = NewAction(ghttp.MethodDelete, empty, false, []string{ghttp.MethodDelete}) RestActions = []*Action{GetAction, PostAction, PutAction, PatchAction, DeleteAction} ListAction = NewAction(list, empty, false, []string{ghttp.MethodGet}) CreateAction = NewAction(create, empty, false, []string{ghttp.MethodPost}) RetrieveAction = NewAction(retrieve, empty, true, []string{ghttp.MethodGet}) UpdateAction = NewAction(update, empty, true, []string{ghttp.MethodPut}) PartialUpdateAction = NewAction(partialUpdate, empty, true, []string{ghttp.MethodPatch}) DestroyAction = NewAction(destroy, empty, true, []string{ghttp.MethodDelete}) DefaultActionList = []*Action{ListAction, RetrieveAction, CreateAction, UpdateAction, PartialUpdateAction, DestroyAction} DefaultActions = DefaultActionList )
Functions ¶
This section is empty.
Types ¶
type ActionGetter ¶
type ActionGetter interface {
GetActions() Actions
}
Click to show internal directories.
Click to hide internal directories.