apisix

package
v0.0.0-...-075a06a Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOk  = 1
	HeaderKey = "X-API-KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Index int   `json:"createdIndex,omitempty"`
	Value Value `json:"value,omitempty"`
}

type Page

type Page[T any] struct {
	Total int `json:"total,omitempty"`
	List  []T `json:"list,omitempty"`
}

type Response

type Response[T any] struct {
	Key   string `json:"key,omitempty"`
	Value T      `json:"value,omitempty"`
}

type UploadReq

type UploadReq struct {
	Content   string   `json:"cert,omitempty"`
	Private   string   `json:"key,omitempty"`
	SNIs      []string `json:"snis,omitempty"`
	Protocols []string `json:"ssl_protocols,omitempty"`
}

func (*UploadReq) Chain

func (ur *UploadReq) Chain(chain string)

func (*UploadReq) Key

func (ur *UploadReq) Key(key string)

type UploadRsp

type UploadRsp struct {
	Id     string `json:"id,omitempty"`
	Status int    `json:"status,omitempty"`
}

func (*UploadRsp) Code

func (ur *UploadRsp) Code() int

func (*UploadRsp) Message

func (ur *UploadRsp) Message() string

type Value

type Value struct {
	Id   string   `json:"id,omitempty"`
	SNIs []string `json:"snis,omitempty"`
	Key  string   `json:"key,omitempty"`
	Cert string   `json:"cert,omitempty"`
}

Jump to

Keyboard shortcuts

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