client

package
v0.0.0-...-8f9433f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = requests.NewClient().NewRequest()

Functions

func VerifyApiKey

func VerifyApiKey(_token string)

VerifyApiKey

#security:"apiKey"#

func VerifyBasic

func VerifyBasic(username string, password string)

VerifyBasic

#security:"basic"#

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 /"#

func (AuthService) Update

func (AuthService) Update(_authID int, _auth *Auth) (err error)

Update the Auth

#route:"PUT /{auth_id}"#

type AuthService_1

type AuthService_1 struct{}

AuthService

#path:"/auth/"#

type AuthWithID

type AuthWithID struct {
	ID   int `json:"auth_id,string"` //
	Auth     //
}

AuthWithID is Auth with ID

type Error

type Error struct {
	Error string `json:"error"` //
}

type FileService

type FileService struct {
	BasePath string //
}

FileService

#path:"/file/"#

func (FileService) Get

func (FileService) Get(_filename_1 string) (_file_1 []byte, err error)

Get a file

#route:"GET /{filename}"#

func (FileService) Upload

func (FileService) Upload(_file io.Reader) (_filename string, err error)

Upload a file

#route:"POST /"#

type FileService_1

type FileService_1 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) AuthCreate

func (Group) AuthCreate(_auth *Auth) (err error)

Create a Auth

#route:"POST /"#

func (Group) AuthDelete

func (Group) AuthDelete(_authID int) (err error)

Delete the Auth

#route:"DELETE /{auth_id}"#

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) AuthUpdate

func (Group) AuthUpdate(_authID int, _auth *Auth) (err error)

Update the Auth

#route:"PUT /{auth_id}"#

func (Group) FileGet

func (Group) FileGet(_filename_1 string) (_file_1 []byte, err error)

Get a file

#route:"GET /{filename}"#

func (Group) FileUpload

func (Group) FileUpload(_file io.Reader) (_filename string, err error)

Upload a file

#route:"POST /"#

func (Group) ItemCreate

func (Group) ItemCreate(_item *Item) (err error)

Create a Item

#route:"POST /"#

func (Group) ItemDelete

func (Group) ItemDelete(_itemID int) (err error)

Delete the Item

#route:"DELETE /{item_id}"#

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) ItemUpdate

func (Group) ItemUpdate(_itemID int, _item *Item) (err error)

Update the Item

#route:"PUT /{item_id}"#

func (Group) MiddCreate

func (Group) MiddCreate(_xToken string, _midd *Midd) (err error)

Create a Midd

#route:"POST /"#

func (Group) MiddDelete

func (Group) MiddDelete(_xToken string, _middID int) (err error)

Delete the Midd

#route:"DELETE /{midd_id}"#

func (Group) MiddGet

func (Group) MiddGet(_xToken string, _middID int) (_midd_1 *MiddWithID, err error)

Get the Midd

#route:"GET /{midd_id}"#

func (Group) MiddList

func (Group) MiddList(_xToken string, _offset_2 int, _limit_2 int) (_midds []*MiddWithID, err error)

List of the Midd

#route:"GET /"#

func (Group) MiddUpdate

func (Group) MiddUpdate(_xToken string, _middID int, _midd *Midd) (err error)

Update the Midd

#route:"PUT /{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 /"#

func (ItemService) Update

func (ItemService) Update(_itemID int, _item *Item) (err error)

Update the Item

#route:"PUT /{item_id}"#

type ItemService_1

type ItemService_1 struct{}

ItemService

#path:"/item/"#

type ItemWithID

type ItemWithID struct {
	ID   int `json:"item_id,string"` //
	Item     //
}

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 /"#

func (MiddService) Update

func (MiddService) Update(_xToken string, _middID int, _midd *Midd) (err error)

Update the Midd

#route:"PUT /{midd_id}"#

type MiddService_1

type MiddService_1 struct{}

MiddService

#path:"/midd/"#

type MiddWithID

type MiddWithID struct {
	ID   int `json:"midd_id"` //
	Midd     //
}

MiddWithID is Midd with ID

type Session

type Session struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL