redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserSession

type UserSession struct {
	Pool    *redis.Pool
	Service player.UserService
}

func NewUserService

func NewUserService(addr string, service player.UserService) *UserSession

func (*UserSession) Authenticate

func (s *UserSession) Authenticate(token string) (*player.User, error)

func (*UserSession) Login

func (s *UserSession) Login(login string) (*player.User, string, error)

func (*UserSession) Logout

func (s *UserSession) Logout(token string)

type VideoFinder

type VideoFinder struct {
	Pool   *redis.Pool
	Finder player.VideoFinder
}

func NewVideoSearcher

func NewVideoSearcher(addr string, finder player.VideoFinder) *VideoFinder

func (*VideoFinder) Search

func (f *VideoFinder) Search(query string) (*player.VideoList, error)

Jump to

Keyboard shortcuts

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