server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTinyUrlTooSmall = errors.New("the tinyUrl is too small")
	ErrTinyUrlNotExist = errors.New("the tinyUrl is not exist")
)

Functions

func DeleteTinyUrl

func DeleteTinyUrl(tinyUrl string) error

func GetTinyUrl

func GetTinyUrl(tinyUrl string) ([]byte, error)

func InitServer

func InitServer()

Don't use init()

func PostTinyUrl

func PostTinyUrl(url []byte) (string, error)

func PutTinyUrl

func PutTinyUrl(tinyUrl, newUrl string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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