package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Apr 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
jsonrpc
The jsonrpc
predicate does an JSONRPC request.
Options
Option |
Required |
Description |
url |
yes |
URL of API |
procedure |
yes |
JSONRPC procedure |
params |
|
params of the procedure |
basic_auth |
|
set basic_auth.username & basic_auth.password |
Results
Field |
Type |
Description |
result |
boolean |
true if request was done successfully |
response |
struct |
result of the procedure |
Example:
jsonrpc:
url: http://domain.com/jsonrpc
procedure: test1
params:
param1: value1
param2:
- 8
- value2
basic_auth:
username: USER1
password: passwd1
Documentation
¶
New returns a new Predicate
type Predicate struct {
}
Predicate is a genapid.Predicate interface that describes the predicate
Call evaluates the predicate
Name returns the name of the predicate
func (predicate *Predicate) Params() interface{}
Params returns a reference to a struct params accepted by the predicate
Result returns data set by the predicate
Source Files
¶
Click to show internal directories.
Click to hide internal directories.