client

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a struct to represent the http or rpc client

func NewClient

func NewClient(URL string) *Client

NewClient returns a new client

func (*Client) Get

func (c *Client) Get(path string, params map[string]string) ([]byte, error)

func (*Client) Post

func (c *Client) Post(path, args string) ([]byte, error)

type TezosClient

type TezosClient interface {
	Post(path, args string) ([]byte, error)
	Get(path string, params map[string]string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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