Documentation ¶
Index ¶
- func BoolFromQuery(r *http.Request, key string, defaultVal bool) (bool, error)
- func ExportedSymbolsOfPackage(pg *cxcore.CXProgram, pkgName string) http.HandlerFunc
- func PackagesOfProgram(pg *cxcore.CXProgram) http.HandlerFunc
- func ProgramMeta(pg *cxcore.CXProgram) http.HandlerFunc
- func ReadJSON(r *http.Request, v interface{}) error
- func WriteJSON(w http.ResponseWriter, r *http.Request, code int, v interface{})
- type API
- type ExportedSymbol
- type ExportedSymbolsResp
- type ProgramMetaResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolFromQuery ¶
BoolFromQuery obtains a boolean from a query entry.
func ExportedSymbolsOfPackage ¶
func ExportedSymbolsOfPackage(pg *cxcore.CXProgram, pkgName string) http.HandlerFunc
ExportedSymbolsOfPackage returns exported symbols of a given package.
func PackagesOfProgram ¶
func PackagesOfProgram(pg *cxcore.CXProgram) http.HandlerFunc
PackagesOfProgram returns an array of package names of a given program.
func ProgramMeta ¶
func ProgramMeta(pg *cxcore.CXProgram) http.HandlerFunc
ProgramMeta returns the program meta data.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API represents an HTTP API.
type ExportedSymbol ¶
type ExportedSymbol struct { Name string `json:"name"` Signature interface{} `json:"signature,omitempty"` Type int `json:"type"` TypeName string `json:"type_name"` }
ExportedSymbol represents a single exported cx symbol.
type ExportedSymbolsResp ¶
type ExportedSymbolsResp struct { Functions []ExportedSymbol `json:"functions"` Structs []ExportedSymbol `json:"structs"` Globals []ExportedSymbol `json:"globals"` }
ExportedSymbolsResp is the exported symbols response.
Click to show internal directories.
Click to hide internal directories.