Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v2.3.222 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analytics

type Analytics struct {
	ID           uint      `json:"id" gorm:"primary_key"`
	OperationID  string    `json:"operation_id"`
	Path         string    `json:"path"`
	UserID       *int      `json:"user_id"`
	Method       string    `json:"method"`
	StatusCode   int       `json:"status_code"`
	ClientIP     string    `json:"client_ip"`
	RequestBody  []byte    `json:"request_body" gorm:"type:bytea;null"`
	ResponseBody []byte    `json:"response_body" gorm:"type:bytea;null"`
	CreatedAt    time.Time `json:"created_at"`
	Login        *string   `json:"login"`
	FirstName    string    `json:"first_name"`
	SecondName   string    `json:"second_name"`
	LastName     string    `json:"last_name"`
	Duration     int64     `json:"duration"`
	Error        *string   `json:"error"`

	User *User `json:"user"`
}

func (Analytics) TableName

func (a Analytics) TableName() string

type User

type User struct {
	ID         int    `json:"id"`
	Login      string `json:"login"`
	FirstName  string `json:"first_name"`
	SecondName string `json:"second_name"`
	LastName   string `json:"last_name"`
}

func (User) TableName

func (m User) TableName() string

Jump to

Keyboard shortcuts

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