user

package
v0.0.0-...-e765db0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewImpl)

ProviderSet is a provider set for wire

Functions

This section is empty.

Types

type IHandler

type IHandler interface {
	// GetByUsername serve caller to given username to get an user information
	GetByUsername(c *gin.Context)

	// Login serve caller to given username and password to login the system
	Login(c *gin.Context)

	// Signup serve caller to given username and password to register an user
	Signup(c *gin.Context)
}

IHandler declare user api function

func CreateIHandler

func CreateIHandler(logger *zap.Logger, biz user.IBiz) (IHandler, error)

func NewImpl

func NewImpl(logger *zap.Logger, biz user.IBiz) IHandler

NewImpl serve caller to create an IHandler

Jump to

Keyboard shortcuts

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