service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(pkg *api.Package) error

Types

type GitHub

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

func NewGitHub

func NewGitHub() *GitHub

func (GitHub) GoDir

func (g GitHub) GoDir(pkg *api.Package) string

func (GitHub) GoFile

func (g GitHub) GoFile(pkg *api.Package) string

func (GitHub) GoMod

func (g GitHub) GoMod(pkg *api.Package) (string, error)

func (GitHub) Packages

func (g GitHub) Packages() (map[string]*api.Package, error)

type GitLab

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

func NewGitLab

func NewGitLab() *GitLab

func (GitLab) GoDir

func (g GitLab) GoDir(pkg *api.Package) string

func (GitLab) GoFile

func (g GitLab) GoFile(pkg *api.Package) string

func (GitLab) GoMod

func (g GitLab) GoMod(pkg *api.Package) (string, error)

func (GitLab) Packages

func (g GitLab) Packages() (map[string]*api.Package, error)

type Gitea

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

func NewGitea

func NewGitea() *Gitea

func (Gitea) GoDir

func (g Gitea) GoDir(pkg *api.Package) string

func (Gitea) GoFile

func (g Gitea) GoFile(pkg *api.Package) string

func (Gitea) GoMod

func (g Gitea) GoMod(pkg *api.Package) (string, error)

func (Gitea) Packages

func (g Gitea) Packages() (map[string]*api.Package, error)

type Off

type Off struct{}

func (Off) GoDir

func (o Off) GoDir(*api.Package) string

func (Off) GoFile

func (o Off) GoFile(*api.Package) string

func (Off) GoMod

func (o Off) GoMod(*api.Package) (string, error)

func (Off) Packages

func (o Off) Packages() (map[string]*api.Package, error)

type Service

type Service interface {
	Packages() (map[string]*api.Package, error)
	GoDir(*api.Package) string
	GoFile(*api.Package) string
	GoMod(*api.Package) (string, error)
}

func New

func New() Service

Jump to

Keyboard shortcuts

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