manager

package
v0.0.0-...-bfc3bc0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager redis proxy manager

func GetManager

func GetManager() *Manager

GetManager returns the manager

func NewManager

func NewManager(redisEndPoint string, opts []grpc.DialOption) (*Manager, error)

NewManager creates a new redis proxy manager

func (*Manager) AddSession

func (m *Manager) AddSession(sessionID int64, conn *redis.Conn)

AddSession adds a session to list of sessions

func (*Manager) GetRedisPool

func (m *Manager) GetRedisPool() *redis.Pool

GetRedisPool get redis pool

func (*Manager) GetSession

func (m *Manager) GetSession(sessionID int64) *redis.Conn

GetSession returns a connection based on a given session ID

func (*Manager) RemoveSession

func (m *Manager) RemoveSession(sessionID int64)

RemoveSession remove a session from list of sessions

Jump to

Keyboard shortcuts

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