transformer

package
v2.3.76 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsSummaryTransformer

type AnalyticsSummaryTransformer struct {
	ID          uint      `json:"id"`
	Path        string    `json:"path"`
	OperationID string    `json:"operation_id"`
	Method      string    `json:"method"`
	StatusCode  int       `json:"status_code"`
	ClientIP    string    `json:"client_ip"`
	CreatedAt   time.Time `json:"created_at"`
	UserID      *int      `json:"user_id"`
	FirstName   string    `json:"first_name"`
	SecondName  string    `json:"second_name"`
	LastName    string    `json:"last_name"`
}

type AnalyticsTransformer

type AnalyticsTransformer struct {
	ID           uint      `json:"id" gorm:"primary_key"`
	OperationID  string    `json:"operation_id"`
	Path         string    `json:"path"`
	Method       string    `json:"method"`
	StatusCode   int       `json:"status_code"`
	ClientIP     string    `json:"client_ip"`
	RequestBody  string    `json:"request_body"`
	ResponseBody string    `json:"response_body"`
	CreatedAt    time.Time `json:"created_at"`
	UserID       *int      `json:"user_id"`
	FirstName    string    `json:"first_name"`
	SecondName   string    `json:"second_name"`
	LastName     string    `json:"last_name"`
}

func AnalyticTransform

func AnalyticTransform(m *models.Analytics) AnalyticsTransformer

Jump to

Keyboard shortcuts

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