Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicateContraint = errors.New("some constraint are duplicate") ErrUserNotFound = errors.New("user not found") )
View Source
var ( ErrAuthPwNotMatch = errors.New("authentication password not match") ErrUsernameExist = errors.New("username already exist") )
View Source
var ( ErrUsernameRequired = errors.New("password required") ErrPasswordRequired = errors.New("password required") )
Functions ¶
This section is empty.
Types ¶
type AuthApp ¶
type AuthApp struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(repository *Repository) *AuthApp
func (*AuthApp) Register ¶
func (a *AuthApp) Register(ctx context.Context, in RegisterIn) (out RegisterOut)
func (*AuthApp) RegisterPost ¶
func (a *AuthApp) RegisterPost(session *session.Session) http.HandlerFunc
type RegisterIn ¶
type RegisterOut ¶
type RegisterOut struct { resp.Response Res RegisterRes }
type RegisterRes ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *pgx.Conn) *Repository
func (*Repository) GetUserByUsername ¶
func (*Repository) InsertUser ¶
Click to show internal directories.
Click to hide internal directories.