package keynuker

import "github.com/google/go-github/github"

// Githhub User Login -> Last Processed Github Event
type GithubEventCheckpoints map[string]*github.Event

func (gec GithubEventCheckpoints) CheckpointForUser(user *github.User) (checkpoint *github.Event, found bool) {
	checkpoint, found = gec[*user.Login]
	return checkpoint, found
}
