manager

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonManager

type CommonManager struct {
	// contains filtered or unexported fields
}

func (*CommonManager) Login

func (m *CommonManager) Login(uid string, password string) (string, error)

func (*CommonManager) ModifyPassword

func (m *CommonManager) ModifyPassword(uid string, oldPassword string, newPassword string) error

func (*CommonManager) Register

func (m *CommonManager) Register(uid string, password string) error

func (*CommonManager) UidUnique

func (m *CommonManager) UidUnique(uid string) bool

type Manager

type Manager interface {
	Login(uid string, password string) (string, error)
	Register(uid string, password string) error
	ModifyPassword(uid string, oldPassword string, newPassword string) error
	UidUnique(uid string) bool
}

func NewCommonManager

func NewCommonManager() Manager

Jump to

Keyboard shortcuts

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