vc

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultTime

type DefaultTime struct{}

func (DefaultTime) Now

func (t DefaultTime) Now() time.Time

type Project

type Project struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Url         string   `json:"html_url"`
	Topics      []string `json:"topics"`
	Fork        bool     `json:"fork"`
}

type Repository

type Repository interface {
	Projects() ([]*Project, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(t Time, repo Repository) *Service

func (*Service) GetProjects

func (s *Service) GetProjects() ([]*Project, error)

func (*Service) IsExpired

func (s *Service) IsExpired() bool

type Time

type Time interface {
	Now() time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳