Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound 用户未发现 ErrUserNotFound = errors.New("not found user") // ErrUserAlreadyExisting 用户名已存在 ErrUserAlreadyExisting = errors.New("username already existing") )
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(ints, chars metrics.Counter) Middleware
InstrumentingMiddleware ..
type Service ¶
type Service interface { GetUser(ctx context.Context, id string) (model.GetUserResponse, error) Register(ctx context.Context, RegisterRequest model.RegisterRequest) (model.RegisterUserResponse, error) Login(ctx context.Context, login model.LoginRequest) (model.LoginResponse, error) }
Click to show internal directories.
Click to hide internal directories.