mem_store

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("closed")
View Source
var ErrInvalidValue = errors.New("invalid value")
View Source
var ErrNotFound = errors.New("not found")

Functions

func NewMemStore

func NewMemStore(ctx context.Context, cfg config.MemStoreConfig) (app.LinkStore, errs.Error)

Types

type Link struct {
	Id        int        `json:"id"`
	TargetUrl string     `json:"url"`
	CreatedAt time.Time  `json:"ct"`
	DeletedAt *time.Time `json:"dt"`
	ExpiredAt *time.Time `json:"et"`
	Hits      int        `json:"hs"`
}

Jump to

Keyboard shortcuts

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