shortener

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package shortener package containing URL shortener functionality

Package shortener package containing URL shortener functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortenHandler

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

ShortenHandler core logic

func NewDictLookupHandler

func NewDictLookupHandler(metricsprefix string) *ShortenHandler

NewDictLookupHandler creates a new instance of type

func NewGrpcLookupHandler

func NewGrpcLookupHandler(metricsprefix string, s string) (*ShortenHandler, error)

NewGrpcLookupHandler returns a new lookuphandler instance

func (*ShortenHandler) RegisterHandlers

func (lh *ShortenHandler) RegisterHandlers(mux *http.ServeMux)

RegisterHandlers attaches handlers to Mux that is passed in

type URLEntry added in v0.0.4

type URLEntry struct {
	ShortLink       string
	DestinationLink string
	LinkGroup       string
	Created         time.Time
}

Jump to

Keyboard shortcuts

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