apisix

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

README

Apisix

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

Apisix网关接口封装

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client 客户端

func (*Client) UploadDescriptor

func (c *Client) UploadDescriptor(
	ctx context.Context,
	filename string, id string, description string,
) (rsp *Response, err error)

type Creator

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

Creator 客户端创建者

func New

func New() *Creator

func (*Creator) Create

func (c *Creator) Create(endpoint string, apiKey string) *Client

func (*Creator) HttpClient

func (c *Creator) HttpClient(client *resty.Client) *Creator

func (*Creator) Logger

func (c *Creator) Logger(logger simaqian.Logger) *Creator

type Response

type Response struct {
	// 键
	Key string `json:"key"`
	// 值
	Value *Value `json:"value"`
}

Response 响应

type Value

type Value struct {
	// 内容
	Content string `json:"content"`
	// 修改时间
	UpdateTime int64 `json:"update_time"`
	// 创建时间
	CreateTime int64 `json:"create_time"`
	// 描述
	Description string `json:"desc"`
}

Value 值

Jump to

Keyboard shortcuts

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