Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirebaseAppWrapper ¶
FirebaseAppWrapper is for injecting the firebase functionality in the client
type FirebaseInteraction ¶
type FirebaseInteraction interface { }
FirebaseInteraction controls interaction with firebase
type MongoDBClientWrapper ¶
MongoDBClientWrapper is for injecting the mongoDB functionality in the client
type MongoDBInteraction ¶
type MongoDBInteraction interface {
Count(ctx context.Context, field string, value string) (int64, error)
}
MongoDBInteraction controls interaction with mongoDB
type Server ¶
type Server struct { FirebaseApp FirebaseInteraction MongoClient MongoDBInteraction AuthClient *auth.Client }
Server is struct for the auth grpc server
func (*Server) CheckUserState ¶
CheckUserState is the rpc to check whether the user has been init
func (*Server) CheckUsernameAvailability ¶
func (s *Server) CheckUsernameAvailability(ctx context.Context, req *pb.CheckUsernameAvailabilityRequest) (*pb.CheckUsernameAvailabilityResponse, error)
CheckUsernameAvailability is the rpc to check the username
Click to show internal directories.
Click to hide internal directories.