serializer

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package serializer ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRequest

type CacheRequest struct {
	Message string `form:"message" binding:"required"`
	Backend string `form:"backend" binding:"required"`
	TTL     int    `form:"ttl" binding:"required"`
}

CacheRequest Cache API 请求结构

func (*CacheRequest) Validate

func (r *CacheRequest) Validate(c *gin.Context) error

Validate ...

type CacheResponse

type CacheResponse struct {
	Digest   string  `json:"digest"`
	HitCache bool    `json:"hitCache"`
	TimeCost float64 `json:"timeCost"`
}

CacheResponse Cache API 返回结构

Jump to

Keyboard shortcuts

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