session

package
v0.0.0-...-a77eb0c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(cfg *config.Config)

Start session服务

Types

type DefaultSessionServer

type DefaultSessionServer struct {
	pb.UnimplementedSessionServer
	// contains filtered or unexported fields
}

DefaultSessionServer 会话服务

func (*DefaultSessionServer) CheckSession

CheckSession 检查Session是否有效

func (*DefaultSessionServer) CreateSession

CreateSession 创建Session

func (*DefaultSessionServer) DeleteSession

DeleteSession 通过sessionID删除会话

func (*DefaultSessionServer) DeleteSessionBatch

DeleteSessionBatch 批量删除会话

func (*DefaultSessionServer) GetSessionInfoByID

GetSessionInfoByID 通过sessionID获取会话信息

func (*DefaultSessionServer) GetSessionInfoByUserName

GetSessionInfoByUserName 通过用户名获取会话信息

func (*DefaultSessionServer) UpdateSession

UpdateSession 检查Session是否有效

Jump to

Keyboard shortcuts

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