common

package
v0.0.0-...-4f0d0f2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveFile

type ArchiveFile struct {
	ID        int64
	CreatedAt time.Time
}

ArchiveFile is the database model for storing reference to an archive file

func NewArchiveFile

func NewArchiveFile(year, month, day, hour int) *ArchiveFile

NewArchiveFile creates a new archive file

type GithubEvent

type GithubEvent struct {
	ID        int64
	Data      string
	CreatedAt time.Time
}

GithubEvent is the database model of an event

type GithubEventJSON

type GithubEventJSON struct {
	ID        string    `json:"id"`
	Org       *OrgJSON  `json:"org"`
	CreatedAt time.Time `json:"created_at"`
}

GithubEventJSON is the root json model of an event

type OrgJSON

type OrgJSON struct {
	Login string `json:"login"`
}

OrgJSON is the json model from archive events

Jump to

Keyboard shortcuts

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