sqlitestorage

package
v0.0.0-...-c688e08 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func Connect

func Connect(dsn string) (*Client, error)
func (c Client) AllShortlinks() ([]shortlinks.Shortlink, error)
func (c Client) CreateShortlink(s shortlinks.Shortlink) error
func (c Client) DeleteShortlink(from, who string) error
func (c Client) DeletedShortlinks() ([]shortlinks.Shortlink, error)

func (Client) History

func (c Client) History(from string) ([]shortlinks.History, error)

func (Client) InsertHistory

func (c Client) InsertHistory(h shortlinks.History) error
func (c Client) Shortlink(from string) (shortlinks.Shortlink, error)

Jump to

Keyboard shortcuts

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