web

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type COSTmpAuthCode

type COSTmpAuthCode struct {
	SecretId     string `json:"secretId"`
	SecretKey    string `json:"secretKey"`
	SessionToken string `json:"sessionToken"`
	// 单位秒
	StartTime int `json:"startTime"`
	// 单位秒
	ExpiredTime int `json:"expiredTime"`
}

type Handler

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

func NewHandler

func NewHandler(secretID, secretKey, appid, bucket,
	region string) *Handler

func (*Handler) PrivateRoutes

func (h *Handler) PrivateRoutes(server *gin.Engine)

func (*Handler) PublicRoutes

func (h *Handler) PublicRoutes(server *gin.Engine)

func (*Handler) TempAuthCode

func (h *Handler) TempAuthCode(ctx *ginx.Context, req TmpAuthCodeReq) (ginx.Result, error)

type TmpAuthCodeReq

type TmpAuthCodeReq struct {
	Key string `json:"key"`
	// Content-Type 的值
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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