transport

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

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

func (*Basic) Connect

func (s *Basic) Connect() error

func (*Basic) Get

func (b *Basic) Get(key string) (model.Link, error)

func (*Basic) Set

func (b *Basic) Set(key string, value model.Link) error

type Redis

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

func (*Redis) Connect

func (s *Redis) Connect() error

func (*Redis) Get

func (s *Redis) Get(key string) (model.Link, error)

func (*Redis) Set

func (s *Redis) Set(key string, value model.Link) error

type Storage

type Storage interface {
	Connect() error
	Get(key string) (model.Link, error)
	Set(key string, value model.Link) error
}

Jump to

Keyboard shortcuts

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