Discover Packages
github.com/usmanager/microservices/death-star-bench/hotelReservation
services
user
package
Version:
v0.0.0-...-56d2f63
Opens a new window with list of versions in this module.
Published: Feb 21, 2021
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Directories Index Constants Variables Functions Types type Server type User (s) CheckUser(ctx, req) (s) Run() (s) Shutdown()
Documentation
¶
type Server struct {
Tracer opentracing.Tracer
Registry *registry .Client
Port int
IpAddr string
MongoSession *mgo.Session
}
Server implements the user service
CheckUser returns whether the username and password are correct.
Shutdown cleans up any processes
type User struct {
Username string `bson:"username"`
Password string `bson:"password"`
}
Source Files
¶
Directories
¶
Show internal
Collapse all
Click to show internal directories.
Click to hide internal directories.