aggergate

package
v0.0.0-...-d66a43f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidURL    = fmt.Errorf("Invalid URL")
	ErrShorteningURL = fmt.Errorf("Error while shortening URL")
)

Functions

This section is empty.

Types

type URL

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

func NewURL

func NewURL(original string) (URL, error)

func NewURLEmpty

func NewURLEmpty() *URL

func (*URL) GetID

func (u *URL) GetID() uuid.UUID

get id of url

func (*URL) GetOriginal

func (u *URL) GetOriginal() string

gets the original url

func (*URL) GetShortened

func (u *URL) GetShortened() string

gets the original url

func (*URL) SetID

func (u *URL) SetID(id uuid.UUID)

set id of url

func (*URL) SetOriginal

func (u *URL) SetOriginal(original string)

set original url

func (*URL) SetShortened

func (u *URL) SetShortened(shortened string)

set shortened url

Jump to

Keyboard shortcuts

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