Documentation ¶
Index ¶
- type Server
- type UserServer
- func (us UserServer) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
- func (us UserServer) CheckAccessToken(ctx context.Context, req *user_service.CheckAccessTokenRequest) (*user_service.CheckAccessTokenResponse, error)
- func (us UserServer) GetUserByID(ctx context.Context, req *user_service.GetUserByIDRequest) (*user_service.GetUserByIDResponse, error)
- func (us UserServer) GetUsersList(ctx context.Context, req *user_service.GetUsersListRequest) (*user_service.GetUsersListResponse, error)
- func (us UserServer) LogOut(ctx context.Context, req *user_service.LogOutRequest) (*user_service.LogOutResponse, error)
- func (us UserServer) Refresh(ctx context.Context, req *user_service.RefreshRequest) (*user_service.RefreshResponse, error)
- func (us UserServer) SignIn(ctx context.Context, req *user_service.SignInRequest) (*user_service.SignInResponse, error)
- func (us UserServer) SignUp(ctx context.Context, req *user_service.SignUpRequest) (*user_service.SignUpResponse, error)
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( host string, port string, service UserService, logger *logrus.Logger, clients *grpc_clients.Clients, ) Server
type UserServer ¶
type UserServer struct { user_service.UnimplementedUserServiceServer // contains filtered or unexported fields }
func (UserServer) AuthFuncOverride ¶
func (UserServer) CheckAccessToken ¶
func (us UserServer) CheckAccessToken(ctx context.Context, req *user_service.CheckAccessTokenRequest) (*user_service.CheckAccessTokenResponse, error)
func (UserServer) GetUserByID ¶
func (us UserServer) GetUserByID(ctx context.Context, req *user_service.GetUserByIDRequest) (*user_service.GetUserByIDResponse, error)
func (UserServer) GetUsersList ¶
func (us UserServer) GetUsersList(ctx context.Context, req *user_service.GetUsersListRequest) (*user_service.GetUsersListResponse, error)
func (UserServer) LogOut ¶
func (us UserServer) LogOut(ctx context.Context, req *user_service.LogOutRequest) (*user_service.LogOutResponse, error)
func (UserServer) Refresh ¶
func (us UserServer) Refresh(ctx context.Context, req *user_service.RefreshRequest) (*user_service.RefreshResponse, error)
type UserService ¶
type UserService interface { SignUp(ctx context.Context, name, email, password, repeatedPassword string) (domain.Tokens, error) SignIn(ctx context.Context, email, password string) (domain.Tokens, error) Refresh(ctx context.Context, refreshToken string) (domain.Tokens, error) LogOut(ctx context.Context, accessToken, refreshToken string) error GetUserByID(ctx context.Context, userID string) (domain.User, error) GetUsersList(ctx context.Context, skip, limit int) ([]domain.User, int, error) CheckAccessToken(ctx context.Context, accessToken string) error }
Click to show internal directories.
Click to hide internal directories.