Documentation ¶
Index ¶
- Constants
- func DelApiCurrentUser(ctx context.Context)
- func GetApiCurrentUser(ctx context.Context) int64
- func GetApiCurrentUserByRequest(r *http.Request) int64
- func InitTokenManager()
- func SetApiCurrentUser(token string, userId int64)
- func Start(ctx context.Context) session.Store
- func StartByRequest(w http.ResponseWriter, r *http.Request) session.Store
Constants ¶
View Source
const (
ApiCurrentUser = "ApiCurrentUser"
)
Variables ¶
This section is empty.
Functions ¶
func DelApiCurrentUser ¶
func GetApiCurrentUser ¶
func InitTokenManager ¶
func InitTokenManager()
func SetApiCurrentUser ¶
func StartByRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.