model

package
v0.0.0-...-ce2ccc6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 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 GitHubUser

type GitHubUser struct {
	Id           uint32    `json:"id" gorm:"primaryKey"`
	Login        string    `json:"login"`
	Email        string    `json:"email"`
	NodeId       string    `json:"node_id"`
	AvatarURL    string    `json:"avatar_url"`
	GravatarId   string    `json:"gravatar_id"`
	Url          string    `json:"url"`
	HtmlUrl      string    `json:"html_url"`
	FollowersUrl string    `json:"followers_url"`
	Type         string    `json:"type"`
	SiteAdmin    bool      `json:"site_admin"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

type Item

type Item struct {
	Id          string `gorm:"primaryKey"`
	Title       string
	Description string
	Marked      bool
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type Session

type Session struct {
	Id     string    `json:"id"`
	GhId   uint32    `json:"gh_id"`
	Expiry time.Time // TODO: Implement expiry check
}

type SessionKey

type SessionKey string

Jump to

Keyboard shortcuts

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