repository

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository implementation responsible for Repository operations.

func New

func New(

	logger *slog.Logger,
) *Repository

New factory to create a new Repository instance.

func (*Repository) GetParser

func (r *Repository) GetParser() internal.ParserManager

GetParser getthe parser to be used.

func (*Repository) GetURL

func (r *Repository) GetURL() string

GetURL get the URL to be parsed.

func (*Repository) Parse

func (r *Repository) Parse() (pkg.RepositoryManager, error)

Parse the URL via the delegated parser.

func (*Repository) RegisterParser

func (r *Repository) RegisterParser(url string) error

RegisterParser register the parser to be used.

func (*Repository) SetParser

func (r *Repository) SetParser(parser internal.ParserManager)

SetParser set the parser to be used.

func (*Repository) SetURL

func (r *Repository) SetURL(url string)

SetURL set the URL to be parsed.

Jump to

Keyboard shortcuts

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