models

package
v0.0.0-...-c69a607 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	Name     string `json:"name"`
	Repo     string `json:"repo"`
	Language string `json:"language"`
}

Project represents a Github project.

func (Project) String

func (p Project) String() string

type Release

type Release struct {
	Project     Project `json:"project"`
	Name        string  `json:"name"`
	TagName     string  `json:"tag_name"`
	URL         string  `json:"html_url"`
	Body        string  `json:"body"`
	CreatedAt   string  `json:"created_at"`
	PublishedAt string  `json:"published_at"`
}

Release represents release information from Github

func GetReleases

func GetReleases() ([]Release, time.Time, error)

GetReleases returns latest release of Github projects.

type User

type User struct {
	ID        int    `json:"id"`
	Lastname  string `json:"lastname"`
	Firstname string `json:"firstname"`
}

User represents a user in database.

func (User) Fullname

func (u User) Fullname() string

Fullname returns user fullname.

Jump to

Keyboard shortcuts

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