user

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

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(username, pwd string) (global.UserTable, error)

func MakeLoginEndpoint

func MakeLoginEndpoint(api UserApi) endpoint.Endpoint

Types

type Handler

type Handler struct {
	LoginHandler grpctransport.Handler
}

func (Handler) Login

func (h Handler) Login(ctx context.Context, req *pro.LoginReq) (*pro.LoginRes, error)

type UserApi

type UserApi interface {
	Login(username, pwd string) (uid, sid string, err error)
}

type UserSvr

type UserSvr struct {
}

func (UserSvr) Login

func (UserSvr) Login(username, pwd string) (uid, sid string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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