url

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresURL

type PostgresURL struct {
	ID        uuid.UUID
	Original  string
	Shortened string
}

postgresURL is an internal type that is used to store a URLAggregate

func NewFromURL

func NewFromURL(u aggregate.URL) PostgresURL

NewFromURL - an aggregate and converts it to the postgresURL

func (PostgresURL) ToAggregate

func (p PostgresURL) ToAggregate() aggregate.URL

ToAggregate - converts to aggregate.URL

Jump to

Keyboard shortcuts

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