core

package
v0.0.0-...-2ae5639 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUrlZip

type IUrlZip interface {
	Validate(string) bool
	ComposeShortURL(string) (string, error)
	GetOriginalURL(string) (string, error)
}

type UrlZipCore

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

func NewUrlZipCore

func NewUrlZipCore(repo repository.IUZRepository) *UrlZipCore

func (UrlZipCore) ComposeShortURL

func (c UrlZipCore) ComposeShortURL(fullPath string) (string, error)

func (UrlZipCore) GetOriginalURL

func (c UrlZipCore) GetOriginalURL(shortPath string) (string, error)

func (UrlZipCore) Validate

func (c UrlZipCore) Validate(shortPath string) bool

Jump to

Keyboard shortcuts

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