client

package
v0.0.0-...-88ad6e2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(url string, timeout time.Duration, key string) (*client, error)

Types

type Client

type Client interface {
	Url() string
	Get(ctx context.Context, url string) ([]byte, error)
	List(ctx context.Context, url string) ([]*response.Response, error)
	Create(ctx context.Context, url string, body io.Reader) (*response.Response, error)
	Delete(ctx context.Context, url string) (*response.Response, error)
	Update(ctx context.Context, url string, body io.Reader) (*response.Response, error)
}

Client 发送apinto接口请求 发送请求时注意是否有admin key

Jump to

Keyboard shortcuts

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