rest

package
v0.8.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping(c *Client) (err error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() (*Client, error)

func (*Client) Compile

func (c *Client) Compile(req *gpyrpc.ExecProgram_Args) (*Result, error)

func (*Client) Delete

func (c *Client) Delete(url string, input interface{}, output interface{}) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(url string, output interface{}) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(url string, input interface{}, output interface{}) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(url string, input interface{}, output interface{}) (*http.Response, error)

type PingResponse

type PingResponse struct {
	Error  string      `json:"error"`
	Result *PingResult `json:"result"`
}

type PingResult

type PingResult struct {
	Value string `json:"value,omitempty"`
}

type Result

type Result struct {
	Error  string                     `json:"error"`
	Result *gpyrpc.ExecProgram_Result `json:"result"`
}

Jump to

Keyboard shortcuts

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