models

package
v0.0.0-...-396de1d Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

models/portfolio.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Education

type Education struct {
	ID        int    `json:"id"`
	Title     string `json:"title"`
	Place     string `json:"place"`
	StartYear int    `json:"start_year"`
	EndYear   int    `json:"end_year"`
}

type Experience

type Experience struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Place       string `json:"place"`
	Description string `json:"description"`
	StartYear   int    `json:"start_year"`
	EndYear     int    `json:"end_year"`
}

type Post

type Post struct {
	ID          int           `json:"id"`
	Title       string        `json:"title"`
	Description string        `json:"description"`
	Content     template.HTML `json:"content"`
	AuthorID    int           `json:"author_id"`
	CreatedAt   string        `json:"created_at"`
	Categoria   string        `json:"categoria"`
}

type Project

type Project struct {
	ID          int    `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	ImageURL    string `json:"image_url"`
	ProjectURL  string `json:"project_url"`
}

type User

type User struct {
	ID       int    `json:"id"`
	Username string `json:"username"`
	Password string `json:"password"`
}

type Visit

type Visit struct {
	ID        int       `json:"id"`
	Timestamp time.Time `json:"timestamp"`
	IP        string    `json:"ip"`
	UserAgent string    `json:"user_agent"`
	Page      string    `json:"page"`
	Country   string    `json:"country"`
	Region    string    `json:"region"`
	City      string    `json:"city"`
	Latitude  float64   `json:"latitude"`
	Longitude float64   `json:"longitude"`
	ISP       string    `json:"isp"`
}

Jump to

Keyboard shortcuts

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