Documentation ¶
Index ¶
- Variables
- func VerifyApiKey(_token string)
- func VerifyBasic(username string, password string)
- type Auth
- type AuthService
- func (AuthService) Create(_auth *Auth) (err error)
- func (AuthService) Delete(_authID int) (err error)
- func (AuthService) Get(_authID int) (_auth_1 *AuthWithID, err error)
- func (AuthService) List(_offset int, _limit int) (_auths []*AuthWithID, err error)
- func (AuthService) Update(_authID int, _auth *Auth) (err error)
- type AuthService_1
- type AuthWithID
- type Error
- type FileService
- type FileService_1
- type Group
- func (Group) AuthCreate(_auth *Auth) (err error)
- func (Group) AuthDelete(_authID int) (err error)
- func (Group) AuthGet(_authID int) (_auth_1 *AuthWithID, err error)
- func (Group) AuthList(_offset int, _limit int) (_auths []*AuthWithID, err error)
- func (Group) AuthUpdate(_authID int, _auth *Auth) (err error)
- func (Group) FileGet(_filename_1 string) (_file_1 []byte, err error)
- func (Group) FileUpload(_file io.Reader) (_filename string, err error)
- func (Group) ItemCreate(_item *Item) (err error)
- func (Group) ItemDelete(_itemID int) (err error)
- func (Group) ItemGet(_itemID int) (_item_1 *ItemWithID, err error)
- func (Group) ItemList(_offset_1 int, _limit_1 int) (_items []*ItemWithID, err error)
- func (Group) ItemUpdate(_itemID int, _item *Item) (err error)
- func (Group) MiddCreate(_xToken string, _midd *Midd) (err error)
- func (Group) MiddDelete(_xToken string, _middID int) (err error)
- func (Group) MiddGet(_xToken string, _middID int) (_midd_1 *MiddWithID, err error)
- func (Group) MiddList(_xToken string, _offset_2 int, _limit_2 int) (_midds []*MiddWithID, err error)
- func (Group) MiddUpdate(_xToken string, _middID int, _midd *Midd) (err error)
- type Item
- type ItemService
- func (ItemService) Create(_item *Item) (err error)
- func (ItemService) Delete(_itemID int) (err error)
- func (ItemService) Get(_itemID int) (_item_1 *ItemWithID, err error)
- func (ItemService) List(_offset_1 int, _limit_1 int) (_items []*ItemWithID, err error)
- func (ItemService) Update(_itemID int, _item *Item) (err error)
- type ItemService_1
- type ItemWithID
- type Midd
- type MiddService
- func (MiddService) Create(_xToken string, _midd *Midd) (err error)
- func (MiddService) Delete(_xToken string, _middID int) (err error)
- func (MiddService) Get(_xToken string, _middID int) (_midd_1 *MiddWithID, err error)
- func (MiddService) List(_xToken string, _offset_2 int, _limit_2 int) (_midds []*MiddWithID, err error)
- func (MiddService) Update(_xToken string, _middID int, _midd *Midd) (err error)
- type MiddService_1
- type MiddWithID
- type Session
Constants ¶
This section is empty.
Variables ¶
var Client = requests.NewClient().NewRequest()
Functions ¶
Types ¶
type Auth ¶
type Auth struct { Name string `json:"name"` // Name is the name Message string `json:"message"` // Name is the message }
Auth is a auth
type AuthService ¶
type AuthService struct{}
AuthService
#path:"/auth/"#
func (AuthService) Create ¶
func (AuthService) Create(_auth *Auth) (err error)
Create a Auth
#route:"POST /"#
func (AuthService) Delete ¶
func (AuthService) Delete(_authID int) (err error)
Delete the Auth
#route:"DELETE /{auth_id}"#
func (AuthService) Get ¶
func (AuthService) Get(_authID int) (_auth_1 *AuthWithID, err error)
Get the Auth
#route:"GET /{auth_id}"#
func (AuthService) List ¶
func (AuthService) List(_offset int, _limit int) (_auths []*AuthWithID, err error)
List of the Auth
#route:"GET /"#
type AuthWithID ¶
AuthWithID is Auth with ID
type FileService ¶
type FileService struct {
BasePath string //
}
FileService
#path:"/file/"#
type Group ¶
type Group struct { Item ItemService // #path:"/item"# File FileService // #path:"/file"# Auth AuthService // #path:"/auth"# Midd MiddService // #path:"/midd"# }
Group
#path:"/group"#
func (Group) AuthGet ¶
func (Group) AuthGet(_authID int) (_auth_1 *AuthWithID, err error)
Get the Auth
#route:"GET /{auth_id}"#
func (Group) AuthList ¶
func (Group) AuthList(_offset int, _limit int) (_auths []*AuthWithID, err error)
List of the Auth
#route:"GET /"#
func (Group) ItemGet ¶
func (Group) ItemGet(_itemID int) (_item_1 *ItemWithID, err error)
Get the Item
#route:"GET /{item_id}"#
func (Group) ItemList ¶
func (Group) ItemList(_offset_1 int, _limit_1 int) (_items []*ItemWithID, err error)
List of the Item
#route:"GET /"#
func (Group) MiddGet ¶
func (Group) MiddGet(_xToken string, _middID int) (_midd_1 *MiddWithID, err error)
Get the Midd
#route:"GET /{midd_id}"#
type Item ¶
type Item struct { Name string // Name is the name of item Message string // Message is the message of item }
Item is a item
type ItemService ¶
type ItemService struct{}
ItemService
#path:"/item/"#
func (ItemService) Create ¶
func (ItemService) Create(_item *Item) (err error)
Create a Item
#route:"POST /"#
func (ItemService) Delete ¶
func (ItemService) Delete(_itemID int) (err error)
Delete the Item
#route:"DELETE /{item_id}"#
func (ItemService) Get ¶
func (ItemService) Get(_itemID int) (_item_1 *ItemWithID, err error)
Get the Item
#route:"GET /{item_id}"#
func (ItemService) List ¶
func (ItemService) List(_offset_1 int, _limit_1 int) (_items []*ItemWithID, err error)
List of the Item
#route:"GET /"#
type ItemWithID ¶
ItemWithID is Item with ID
type Midd ¶
type Midd struct { MiddID int `json:"midd_id"` // MiddID is the Midd ID Name string `json:"name"` // Name is the name Message string `json:"message"` // Name is the message }
Midd is a midd
type MiddService ¶
type MiddService struct{}
MiddService
#path:"/midd/"#
func (MiddService) Create ¶
func (MiddService) Create(_xToken string, _midd *Midd) (err error)
Create a Midd
#route:"POST /"#
func (MiddService) Delete ¶
func (MiddService) Delete(_xToken string, _middID int) (err error)
Delete the Midd
#route:"DELETE /{midd_id}"#
func (MiddService) Get ¶
func (MiddService) Get(_xToken string, _middID int) (_midd_1 *MiddWithID, err error)
Get the Midd
#route:"GET /{midd_id}"#
func (MiddService) List ¶
func (MiddService) List(_xToken string, _offset_2 int, _limit_2 int) (_midds []*MiddWithID, err error)
List of the Midd
#route:"GET /"#
type MiddWithID ¶
MiddWithID is Midd with ID