vc

package module
v0.3.0 Latest Latest
Warning

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

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

README

vc service

builds.sr.ht status

Version Control Fetcher service

Quick start

Development
go mod download
go run cmd/vc/main.go
Test
go test -v -cover ./...
Coverage Func
go test -coverprofile=c.out ./...
go tool cover -func c.out
Coverage HTML
go test -coverprofile=c.out ./...
go tool cover -html c.out
Deployment
go mod download
go build ./...
./vc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

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

type TimeService

type TimeService interface {
	Now() time.Time
}

type VCCache

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

func NewVCCache

func NewVCCache(t TimeService, s VCService) *VCCache

func (*VCCache) Projects

func (c *VCCache) Projects() ([]*Project, error)

type VCService

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

Directories

Path Synopsis
cmd
vc
net
pkg

Jump to

Keyboard shortcuts

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