auth

package
v0.0.0-...-224700b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthModel

type AuthModel struct {
}

func (*AuthModel) IDToToken

func (m *AuthModel) IDToToken(user_id int) (*string, error)

func (*AuthModel) InitAuthModel

func (m *AuthModel) InitAuthModel() *AuthModel

func (*AuthModel) TokenToID

func (m *AuthModel) TokenToID(user_token string) (*int, error)

type AuthService

type AuthService struct {
	Model *AuthModel
}

func GetService

func GetService() *AuthService

func (*AuthService) AuthorizeToken

func (s *AuthService) AuthorizeToken(user_token string) (user_id *int, err error)

func (*AuthService) DeAuthorizeToken

func (s *AuthService) DeAuthorizeToken(user_id int) (user_token *string, err error)

func (*AuthService) InitService

func (s *AuthService) InitService() *AuthService

Jump to

Keyboard shortcuts

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