api

package
v1.0.283 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package api описание вспомогательных функций для роутеров API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAddPhoto

func HandleAddPhoto(w http.ResponseWriter, r *http.Request)

HandleAddPhoto добавление фото к обьекту (по имени таблицы и Айди) @/api/v1/photos/add/

func HandleAllRowsJSON

func HandleAllRowsJSON(w http.ResponseWriter, r *http.Request)

HandleAllRowsJSON return all rows from nameTable @/api/table/rows/?table={nameTable}

func HandleFieldsJSON

func HandleFieldsJSON(w http.ResponseWriter, r *http.Request)

HandleFieldsJSON prepare JSON with fields type from structere DB and + 1 row with data if issue parameter "id" @/api/table/form/?table={nameTable}

func HandleListAllList

func HandleListAllList(w http.ResponseWriter, r *http.Request)

HandleListAllList показ структуры таблицы nameTable @/api/table/schema/?table={nameTable}

func HandleLogServer

func HandleLogServer(w http.ResponseWriter, r *http.Request)

HandleLogServer show log httpgo @/api/log/

func HandleMultiRouteJSON

func HandleMultiRouteJSON(w http.ResponseWriter, r *http.Request)

HandleMultiRouteJSON prepare JSON with fields type from structere DB and + 1 row with data if issue parameter "id" @/api/multiroute/?route[]={routes list}

func HandlePhotos

func HandlePhotos(w http.ResponseWriter, r *http.Request)

HandlePhotos возвращает ссылки на фото обьекта либо файл @/api/v1/photos/

func HandleRestartServer

func HandleRestartServer(w http.ResponseWriter, r *http.Request)

HandleRestartServer restart service @/api/restart/

func HandleRowJSON

func HandleRowJSON(w http.ResponseWriter, r *http.Request)

HandleRowJSON return row from nameTable from key=id @/api/table/row/?table={nameTable}&id={id}

func HandleSchema

func HandleSchema(w http.ResponseWriter, r *http.Request)

HandleSchema show schema table by name {nameTable} @/api/table/schema/?table={nameTable}

func HandleShowDebugServer

func HandleShowDebugServer(w http.ResponseWriter, r *http.Request)

HandleShowDebugServer show debug messages @/api/log/debug/

func HandleShowErrorsServer

func HandleShowErrorsServer(w http.ResponseWriter, r *http.Request)

HandleShowErrorsServer show services errors @/api/log/errors/

func HandleShowStatusServer

func HandleShowStatusServer(w http.ResponseWriter, r *http.Request)

HandleShowStatusServer show status message @/api/log/status/

func HandleStatusServer

func HandleStatusServer(w http.ResponseWriter, r *http.Request)

HandleLogServer show status httpgo @/api/status/

func HandleTextRowJSON

func HandleTextRowJSON(w http.ResponseWriter, r *http.Request)

HandleTextRowJSON return field with text values for show in site @/api/table/view/?table={nameTable}& other field in this table

func HandleUpdateBuild

func HandleUpdateBuild(w http.ResponseWriter, r *http.Request)

HandleUpdateBuild build project

func HandleUpdateServer

func HandleUpdateServer(w http.ResponseWriter, r *http.Request)

HandleUpdateServer update httpgo & {project} code from git & build new version httpgo branch - name git branch @/api/update/?branch={branch}

func HandleUpdateSource

func HandleUpdateSource(w http.ResponseWriter, r *http.Request)

HandleUpdateSource incremental update update httpgo & {project} co de from git & build new version httpgo branch - name git branch @/api/update/source/

func HandleUpdateTest

func HandleUpdateTest(w http.ResponseWriter, r *http.Request)

HandleUpdateTest run tests project

func HandleVideos

func HandleVideos(w http.ResponseWriter, r *http.Request)

HandleVideos is dummy handler

func HandlerSearch

func HandlerSearch(w http.ResponseWriter, r *http.Request)

HandlerSearch prepare JSON with fields type from structere DB and + 1 row with data if issue parameter "id" @/api/search/?table={nameTable}

func PrepareQuery

func PrepareQuery(rForm url.Values, table *schema.FieldsTable) (where string, args []interface{})

PrepareQuery make where part for sql-query & fill args

func PutRowToJSON

func PutRowToJSON(fields []*qb.QBField) error

PutRowToJSON read rows and store in JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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