vc

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: ISC Imports: 1 Imported by: 0

README

vc

builds.sr.ht status

VC 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

View Source
var (
	ErrUsernameRequired = errors.New("username must be provided")
)

Functions

This section is empty.

Types

type Config added in v0.1.1

type Config struct {
	GRPC GRPC `toml:"grpc"`
}

type GRPC added in v0.1.1

type GRPC struct {
	Port int `toml:"port"`
}

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 ProjectsRequest added in v0.1.1

type ProjectsRequest struct {
	Username string
}

type ProjectsResponse added in v0.1.1

type ProjectsResponse struct {
	Projects []*Project
}

type Service added in v0.1.1

type Service interface {
	Projects(r *ProjectsRequest) (*ProjectsResponse, error)
}

type Validate added in v0.1.1

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

func NewValidate added in v0.1.1

func NewValidate(s Service) Validate

func (Validate) Projects added in v0.1.1

func (v Validate) Projects(r *ProjectsRequest) (*ProjectsResponse, error)

Directories

Path Synopsis
cmd
vc

Jump to

Keyboard shortcuts

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