user

package
v0.0.0-...-9a8bd01 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Tracer       opentracing.Tracer
	Registry     *registry.Client
	Port         int
	IpAddr       string
	MongoSession *mgo.Session
	// contains filtered or unexported fields
}

Server implements the user service

func (*Server) CheckUser

func (s *Server) CheckUser(ctx context.Context, req *pb.Request) (*pb.Result, error)

CheckUser returns whether the username and password are correct.

func (*Server) Run

func (s *Server) Run() error

Run starts the server

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown cleans up any processes

type User

type User struct {
	Username string `bson:"username"`
	Password string `bson:"password"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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