http

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecHttp added in v1.1.6

func ExecHttp(url, key string) ([]byte, error)

Types

type Client

type Client struct {
	Hosts []string
}

func New

func New(machines []string) (*Client, error)

func (*Client) Get

func (c *Client) Get(key string) ([]byte, error)

func (*Client) List

func (c *Client) List(key string) (backend.KVPairs, error)

不需要list

func (*Client) Set

func (c *Client) Set(key string, value []byte) error

不需要set

func (*Client) Watch

func (c *Client) Watch(key string, stop chan bool) <-chan *backend.Response

Jump to

Keyboard shortcuts

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