redis

package
v0.0.0-...-d33d225 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	Prefix string
	// contains filtered or unexported fields
}

func NewMachine

func NewMachine(c *gin.Context) *Machine

func (*Machine) GetLoginHash

func (m *Machine) GetLoginHash(hash string) (exist bool, data string, err error)

func (*Machine) PubMachineCookie

func (m *Machine) PubMachineCookie(key, value string) (err error)

func (*Machine) SetLoginHash

func (m *Machine) SetLoginHash(key, hash string) (err error)

func (*Machine) SubMachineCookie

func (m *Machine) SubMachineCookie(key string, timeout time.Duration) (data []string, err error)

Jump to

Keyboard shortcuts

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