models

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcCallRecord

type RpcCallRecord struct {
	ID     uint   `gorm:"primaryKey;autoIncrement"`
	Method string `gorm:"size:255;index"` // 方法名
	// Request   string         `gorm:"type:text"`      // 请求内容 (json序列化)
	// Response  string         `gorm:"type:text"`      // 响应内容 (json序列化)
	Duration  int64          // 耗时,单位:毫秒
	Error     string         `gorm:"type:text"` // 错误信息
	Timestamp time.Time      `gorm:"index"`     // 调用时间
	DeletedAt gorm.DeletedAt `gorm:"index"`     // 软删除支持
}

RpcCallRecord 定义一条 gRPC 调用的记录

Jump to

Keyboard shortcuts

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