Documentation
¶
Index ¶
- func Start(cfg *config.Config)
- type DefaultSessionServer
- func (*DefaultSessionServer) CheckSession(ctx context.Context, req *pb.CheckSessionReq) (*pb.CheckSessionRsp, error)
- func (*DefaultSessionServer) CreateSession(ctx context.Context, req *pb.CreateSessionReq) (*pb.CreateSessionRsp, error)
- func (*DefaultSessionServer) DeleteSession(ctx context.Context, req *pb.DeleteSessionReq) (*pb.DeleteSessionRsp, error)
- func (*DefaultSessionServer) DeleteSessionBatch(ctx context.Context, req *pb.DeleteSessionBatchReq) (*pb.DeleteSessionBatchRsp, error)
- func (*DefaultSessionServer) GetSessionInfoByID(ctx context.Context, req *pb.GetSessionInfoByIDReq) (*pb.GetSessionInfoRsp, error)
- func (*DefaultSessionServer) GetSessionInfoByUserName(ctx context.Context, req *pb.GetSessionInfoByUserNameReq) (*pb.GetSessionInfoRsp, error)
- func (*DefaultSessionServer) UpdateSession(ctx context.Context, req *pb.UpdateSessionReq) (*pb.UpdateSessionRsp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultSessionServer ¶
type DefaultSessionServer struct { pb.UnimplementedSessionServer // contains filtered or unexported fields }
DefaultSessionServer 会话服务
func (*DefaultSessionServer) CheckSession ¶
func (*DefaultSessionServer) CheckSession(ctx context.Context, req *pb.CheckSessionReq) (*pb.CheckSessionRsp, error)
CheckSession 检查Session是否有效
func (*DefaultSessionServer) CreateSession ¶
func (*DefaultSessionServer) CreateSession(ctx context.Context, req *pb.CreateSessionReq) (*pb.CreateSessionRsp, error)
CreateSession 创建Session
func (*DefaultSessionServer) DeleteSession ¶
func (*DefaultSessionServer) DeleteSession( ctx context.Context, req *pb.DeleteSessionReq) (*pb.DeleteSessionRsp, error)
DeleteSession 通过sessionID删除会话
func (*DefaultSessionServer) DeleteSessionBatch ¶
func (*DefaultSessionServer) DeleteSessionBatch(ctx context.Context, req *pb.DeleteSessionBatchReq) (*pb.DeleteSessionBatchRsp, error)
DeleteSessionBatch 批量删除会话
func (*DefaultSessionServer) GetSessionInfoByID ¶
func (*DefaultSessionServer) GetSessionInfoByID(ctx context.Context, req *pb.GetSessionInfoByIDReq) (*pb.GetSessionInfoRsp, error)
GetSessionInfoByID 通过sessionID获取会话信息
func (*DefaultSessionServer) GetSessionInfoByUserName ¶
func (*DefaultSessionServer) GetSessionInfoByUserName(ctx context.Context, req *pb.GetSessionInfoByUserNameReq) (*pb.GetSessionInfoRsp, error)
GetSessionInfoByUserName 通过用户名获取会话信息
func (*DefaultSessionServer) UpdateSession ¶
func (*DefaultSessionServer) UpdateSession(ctx context.Context, req *pb.UpdateSessionReq) (*pb.UpdateSessionRsp, error)
UpdateSession 检查Session是否有效
Click to show internal directories.
Click to hide internal directories.