url

package
v0.0.0-...-6df7d0f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateRequest

type GenerateRequest struct {
	EnvVersion     string `json:"env_version"`
	Path           string `json:"path"`
	Query          string `json:"query"`
	ExpireType     int8   `json:"expire_type"`
	ExpireTime     int64  `json:"expire_time"`
	ExpireInterval int8   `json:"expire_interval"`
}

GenerateRequest 请求

type GenerateResponse

type GenerateResponse struct {
	util.CommonError
	URLLink string `json:"url_link"`
}

GenerateResponse 响应

type URL

type URL struct {
	*context.Context
}

URL struct

func NewURL

func NewURL(ctx *context.Context) *URL

NewURL 实例

func (*URL) Generate

func (u *URL) Generate(req GenerateRequest) (*GenerateResponse, error)

Generate 生成URL Link

Jump to

Keyboard shortcuts

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