dto

package
v0.0.0-...-7ba98d9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangesEmailData

type ChangesEmailData struct {
	Login        string
	Email        string
	Followers    int
	Stars        int
	Repos        int
	NewFollowers []string
	Unfollowers  []string
	NewStars     []StarEmailData
	Unstars      []StarEmailData
	ClientID     string
}

ChangesEmailData is the DTO passed down to the daily email

type GitHubUser

type GitHubUser struct {
	ID        int
	Login     string
	Email     string
	Followers []string
}

type IndexPageData

type IndexPageData struct {
	PageData
	FollowerCount   int
	StarCount       int
	RepositoryCount int
}

IndexPageData DTO

type PageData

type PageData struct {
	User     PageUserData
	ClientID string
}

PageData DTO

type PageUserData

type PageUserData struct {
	ID    int
	Login string
	IsNew bool
}

type StarEmailData

type StarEmailData struct {
	Repo  string
	Users []string
}

StarEmailData is the DTO representing a repository and the users starring it

type WelcomeEmailData

type WelcomeEmailData struct {
	Login     string
	Email     string
	Followers int
	Stars     int
	Repos     int
	ClientID  string
}

WelcomeEmailData is the DTO passed to the welcome email template

Jump to

Keyboard shortcuts

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