api

package
v0.0.0-...-9074eae Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppBuyu

func AppBuyu(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func TauriChatGPT

func TauriChatGPT(w http.ResponseWriter, r *http.Request)

func Test

func Test(w http.ResponseWriter, r *http.Request)

Types

type BuyuAsset

type BuyuAsset struct {
	Name               string `json:"name"`
	Label              string `json:"label"`
	BrowserDownloadUrl string `json:"browser_download_url"`
}

type BuyuInfo

type BuyuInfo struct {
	TagName    string      `json:"tag_name"`
	Draft      bool        `json:"draft"`
	Prerelease bool        `json:"prerelease"`
	Assets     []BuyuAsset `json:"assets"`
	Body       string      `json:"body"`
}

type Data

type Data struct {
	TagName     string `json:"tag_name"`
	PublishedAt string `json:"published_at"`
	Assets      []struct {
		Name               string `json:"name"`
		BrowserDownloadUrl string `json:"browser_download_url"`
	} `json:"assets"`
}

type Resp

type Resp struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

func NewFailResp

func NewFailResp(code int, msg string) *Resp

func NewOkResp

func NewOkResp(data interface{}) *Resp

func (*Resp) JsonString

func (r *Resp) JsonString() string

type RespBuyuVersion

type RespBuyuVersion struct {
	Version    string `json:"version"`
	Content    string `json:"content"`
	Download   string `json:"download"`
	Prerelease bool   `json:"prerelease"`
}

Jump to

Keyboard shortcuts

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