cauth

package
v0.0.0-...-eda2346 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Overview

caching auth information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

It's safe to close twice

func Conf

func Conf() *conf

func GetNicknameByID

func GetNicknameByID(id string) string

return user's nickname when exist or return uesr's username when exist or return '游客'

func GetUserByID

func GetUserByID(id string) *auth.User

func GetUserByUsername

func GetUserByUsername(username string) *auth.User

func Run

func Run() error

listen to update signal received from RabbitMQ only one signal will active in 10 seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

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