lib

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileAndStruct added in v1.0.2

func GetFileAndStruct(identifier string) (fileName, structName string)

func GetGithubBaseURL added in v1.0.2

func GetGithubBaseURL(path string) (string, bool)

func GetIdentifier added in v1.0.2

func GetIdentifier(tmpFolder, path, pkg, name string) string

func IsGoFile added in v1.0.2

func IsGoFile(name string) bool

func TrimTemporaryPath added in v1.0.3

func TrimTemporaryPath(tmpFolder, path, repository string) string

Types

type Cache

type Cache interface {
	Get(key string) (bool, []byte)
	Set(key string, value []byte, TTL time.Duration)
	GetSet(key string, set func() ([]byte, error), TTL time.Duration) ([]byte, error)
}

func NewCache

func NewCache() Cache

type Fetcher

type Fetcher interface {
	Fetch(packageName string, branchName string) (string, error)
}

func NewFetcher

func NewFetcher(tmpFolder string) Fetcher

Jump to

Keyboard shortcuts

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