package
0.0.5
Repository: https://github.com/jsautret/genapid.git
Documentation: pkg.go.dev

# README

jsonrpc

The jsonrpc predicate does an JSONRPC request.

Options

OptionRequiredDescription
urlyesURL of API
procedureyesJSONRPC procedure
paramsparams of the procedure
basic_authset basic_auth.username & basic_auth.password

Results

FieldTypeDescription
resultbooleantrue if request was done successfully
responsestructresult of the procedure

Example:

jsonrpc:
  url: http://domain.com/jsonrpc
  procedure: test1
  params:
    param1: value1
    param2:
      - 8
      - value2
  basic_auth:
    username: USER1
    password: passwd1

# Functions

New returns a new Predicate.

# Variables

Name of the predicate.

# Structs

Predicate is a genapid.Predicate interface that describes the predicate.