Documentation ¶
Index ¶
- type Service
- func (s *Service) CacheUser(c *gin.Context, data *protos.Person)
- func (s *Service) Check(c *gin.Context, token string) (*protos.Person, error)
- func (s *Service) LockByName(c *gin.Context, userName string) bool
- func (s *Service) Register(c *gin.Context, userName, pwd string) (err error)
- func (s *Service) VerifyUser(c *gin.Context, userName, pwd string) (id int32, err error)
- func (s *Service) VerifyUserName(c *gin.Context, userName string) (ok bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { LocalCache *gocache.Cache Dao *db.StoreDbClient RedisCache *trace_redis.RedisInstance }
func (*Service) LockByName ¶ added in v1.0.0
func (*Service) VerifyUser ¶
Click to show internal directories.
Click to hide internal directories.