store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryUrlStore

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

func NewInMemoryUrlStore

func NewInMemoryUrlStore() *InMemoryUrlStore

func (*InMemoryUrlStore) GetById

func (s *InMemoryUrlStore) GetById(id int) (string, error)

func (*InMemoryUrlStore) Store

func (s *InMemoryUrlStore) Store(url string) (int, error)

type SqliteUrlStore

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

func NewSqliteUrlStore

func NewSqliteUrlStore(path string) (*SqliteUrlStore, error)

func (*SqliteUrlStore) GetById

func (s *SqliteUrlStore) GetById(id int) (string, error)

func (*SqliteUrlStore) Store

func (s *SqliteUrlStore) Store(url string) (int, error)

Jump to

Keyboard shortcuts

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