rest package - github.com/cdutwhu/n3-client/rest - Go Packages

rest

package
v0.0.0-...-a9af2ab Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BLANK is
	BLANK = w.BLANK
)

Variables

View Source
var (
	// IF is
	IF = u.IF

	// IArrIntersect is
	IArrIntersect = w.IArrIntersect
	// GetMapKVs is
	GetMapKVs = w.GetMapKVs
	// SlcD2ToD1 is
	SlcD2ToD1 = w.SlcD2ToD1
	// IArrRmRep is
	IArrRmRep = w.IArrRmRep
	// IsJSON is
	IsJSON = gjxy.IsJSON
	// Get1stObjInQry is
	Get1stObjInQry = gjxy.Get1stObjInQry
)

Functions

func GetIDs

func GetIDs(object string, fields []string, values []string, all bool) ([]string, error)

GetIDs :

func GetIDsInDB

func GetIDsInDB(ctx string, mParamPath map[string]string, mParamValue map[string]interface{}, object string, all bool) []string

GetIDsInDB :

func HostHTTPAsync

func HostHTTPAsync()

HostHTTPAsync : Host a HTTP Server for publishing xml json string(request body) to <n3-transport> grpc Server

func IDsByPO

func IDsByPO(ctx string, mParamPath map[string]string, mParamValue map[string]interface{}, all bool) (IDs []string)

IDsByPO :

func LocalIP

func LocalIP() string

LocalIP returns the non loopback local IP of the host

func OriExePathChk

func OriExePathChk()

OriExePathChk :

Types

type Request

type Request struct {
	Query     string                 `json:"query"`
	Variables map[string]interface{} `json:"variables"`
}

Request : wrapper type to capture GQL input

type S

type S = w.Str

S is

type Ss

type Ss = w.Strs

Ss is

Jump to

Keyboard shortcuts

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