storage

package
v0.0.0-...-78207b3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DBNAME = "urlshort.db"

Variables

This section is empty.

Functions

func InitDB

func InitDB()

Types

type BucketCreationError

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

func (*BucketCreationError) Error

func (e *BucketCreationError) Error() string

type Connection

type Connection struct {
	// contains filtered or unexported fields
}
var Conn Connection

func (*Connection) AddRoute

func (Conn *Connection) AddRoute(route RouteData) error

func (*Connection) CloseConnection

func (Conn *Connection) CloseConnection()

func (*Connection) GetRoute

func (Conn *Connection) GetRoute(path string) (string, error)

type RouteData

type RouteData struct {
	Path string `yaml:"path" json:"path"`
	Url  string `yaml:"url" json:"url"`
}

Jump to

Keyboard shortcuts

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