Documentation ¶
Index ¶
- type AuthServer
- func (as *AuthServer) EmailUsed(ctx context.Context, in *pb.EmailUsedRequest) (*pb.UsedResponse, error)
- func (as *AuthServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.AuthResponse, error)
- func (as *AuthServer) Register(ctx context.Context, in *pb.RegisterRequest) (*pb.AuthResponse, error)
- func (as *AuthServer) UsernameUsed(ctx context.Context, in *pb.UsernameUsedRequest) (*pb.UsedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
type AuthServer struct { }
AuthServer ...
func (*AuthServer) EmailUsed ¶
func (as *AuthServer) EmailUsed(ctx context.Context, in *pb.EmailUsedRequest) (*pb.UsedResponse, error)
EmailUsed ...
func (*AuthServer) Login ¶
func (as *AuthServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.AuthResponse, error)
Login checks db for user info and returns a auth token
func (*AuthServer) Register ¶
func (as *AuthServer) Register(ctx context.Context, in *pb.RegisterRequest) (*pb.AuthResponse, error)
Register ...
func (*AuthServer) UsernameUsed ¶
func (as *AuthServer) UsernameUsed(ctx context.Context, in *pb.UsernameUsedRequest) (*pb.UsedResponse, error)
UsernameUsed ...
Click to show internal directories.
Click to hide internal directories.