shorturl

package module
v0.0.0-...-6b10487 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 7 Imported by: 0

README

shorturl

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyStore

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

func NewProxyStore

func NewProxyStore(addr string) *ProxyStore

func (*ProxyStore) Get

func (s *ProxyStore) Get(key, url *string) error

func (*ProxyStore) Put

func (s *ProxyStore) Put(url, key *string) error

type Store

type Store interface {
	Put(url, key *string) error
	Get(key, url *string) error
}

type URLStore

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

func NewURLStore

func NewURLStore(filename string) *URLStore

func (*URLStore) Get

func (s *URLStore) Get(key, url *string) error

func (*URLStore) Put

func (s *URLStore) Put(url, key *string) error

func (*URLStore) Set

func (s *URLStore) Set(key, url *string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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