rdb

package
v0.0.0-...-838b099 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundErr = errors.New("not found")
)

Functions

func GOBDecode

func GOBDecode(buf *bytes.Buffer, val interface{}) error

func GOBEncode

func GOBEncode(val interface{}) (*bytes.Buffer, error)

func RadixGetSession

func RadixGetSession(client *radix.Pool, session *Session, key string) error

func RadixSetSession

func RadixSetSession(client *radix.Pool, session *Session, seconds int) error

func RedisGetSession

func RedisGetSession(client *redis.Client, session *Session, key string) error

func RedisSetSession

func RedisSetSession(client *redis.Client, session *Session, seconds int) error

Types

type Session

type Session struct {
	SessionID string
	UserID    uint
	Username  string
}

Session represents a session of an application.

Jump to

Keyboard shortcuts

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