data

package
v0.0.0-...-936aef1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementBlogReads

func IncrementBlogReads(publicId string) error

func UpdateBlogsMeta

func UpdateBlogsMeta() error

Types

type Blog

type Blog struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Content     string `json:"-"`
	PublicId    string `json:"public_id"`
	VisitTimes  uint   `json:"visited_times"`
	WrittenAt   int64  `json:"written_at"`
}

func GetBlogByPublicId

func GetBlogByPublicId(id string) (Blog, error)

func GetBlogs

func GetBlogs() ([]Blog, error)
type ContactLink struct {
	Title    string `json:"title"`
	Link     string `json:"link"`
	Target   string `json:"target"`
	IconPath string `json:"icon_path"`
}
func GetContactLinks() ([]ContactLink, error)

type Info

type Info struct {
	FullAbout    string   `json:"full_about"`
	BriefAbout   string   `json:"brief_about"`
	BlogIntro    string   `json:"blog_intro"`
	Technologies []string `json:"technologies"`
}

func GetInfo

func GetInfo() (Info, error)

type MutexWrapper

type MutexWrapper[T any] struct {
	// contains filtered or unexported fields
}

func (*MutexWrapper[T]) Get

func (w *MutexWrapper[T]) Get() T

func (*MutexWrapper[T]) Set

func (w *MutexWrapper[T]) Set(data T)

type Project

type Project struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	LogoUrl     string `json:"logo_url"`
	SourceCode  string `json:"source_code"`
	Website     string `json:"website"`
	StartYear   string `json:"start_year"`
	EndYear     string `json:"end_year"`
}

type ProjectGroup

type ProjectGroup struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	Order       uint      `json:"order"`
	Projects    []Project `json:"projects"`
}

func GetProjectGroups

func GetProjectGroups() ([]ProjectGroup, error)

type VolunteeringExperience

type VolunteeringExperience experience

func GetVolunteeringXP

func GetVolunteeringXP() ([]VolunteeringExperience, error)

type WorkExperience

type WorkExperience experience

func GetWorkXP

func GetWorkXP() ([]WorkExperience, error)

Jump to

Keyboard shortcuts

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