Discover Packages
github.com/delimitrou/DeathStarBench
hotelReservation
services
user
package
Version:
v0.0.0-...-82bdfc5
Opens a new window with list of versions in this module.
Published: Feb 4, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 16
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.